Loading [MathJax]/extensions/tex2jax.js
OMSim
Geant4 for IceCube optical module studies
Toggle main menu visibility
Main Page
Related Pages
Files
File List
File Members
All
Functions
Macros
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
Functions
a
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
w
~
Variables
d
e
f
g
h
i
k
l
m
n
p
r
t
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Macros
Modules
Pages
Loading...
Searching...
No Matches
OMSimLogger.hh
1
#pragma once
2
#include <spdlog/spdlog.h>
3
#include <spdlog/sinks/stdout_color_sinks.h>
4
#include <memory>
5
#include "spdlog/fmt/fmt.h"
6
7
// Global logger instance
8
extern
std::shared_ptr<spdlog::logger> g_logger;
9
10
// Custom logging function
11
void
customLog(spdlog::level::level_enum log_level,
const
char
* file,
int
line,
const
char
* func,
const
std::string& message);
12
13
#define log_trace(...) customLog(spdlog::level::trace, __FILE__, __LINE__, __func__, fmt::format(__VA_ARGS__))
14
#define log_debug(...) customLog(spdlog::level::debug, __FILE__, __LINE__, __func__, fmt::format(__VA_ARGS__))
15
#define log_info(...) customLog(spdlog::level::info, __FILE__, __LINE__, __func__, fmt::format(__VA_ARGS__))
16
#define log_notice(...) customLog(spdlog::level::info, __FILE__, __LINE__, __func__, fmt::format(__VA_ARGS__))
17
#define log_warning(...) customLog(spdlog::level::warn, __FILE__, __LINE__, __func__, fmt::format(__VA_ARGS__))
18
#define log_error(...) customLog(spdlog::level::err, __FILE__, __LINE__, __func__, fmt::format(__VA_ARGS__))
19
#define log_critical(...) customLog(spdlog::level::critical, __FILE__, __LINE__, __func__, fmt::format(__VA_ARGS__))
common
framework
include
OMSimLogger.hh
Generated on Fri Apr 11 2025 10:17:12 for OMSim by
1.9.8