|
EICrecon
JANA based reconstruction for the EPIC detector
|
#include <SpdlogMixin.h>

Public Types | |
| using | level = Log_service::level |
Public Member Functions | |
| void | InitLogger (JApplication *app, const std::string ¶m_prefix, const level default_level=level::info) |
| std::shared_ptr< spdlog::logger > & | logger () |
Protected Attributes | |
| std::shared_ptr< spdlog::logger > | m_log |
| current logger | |
Logger mixin
@example:
class MyFactory : JFactory, SpdlogMixin {
void Init() {
InitLogger(GetApplication(), "MyPlugin:MyFactory");
// Logger is ready and can be used:
m_log->info("MyFactory logger initialized");
}
void Process(...) {
m_log->trace("Using logger!");
}
};
|
inline |
|
inline |
|
protected |
current logger