37 log->
info(0,
"doing something ");
56 log->
info(0,
"doing something ");
71 goptions.defineSwitch(
"light",
"a switch, this is just an example.");
76int main(
int argc,
char* argv[]) {
77 auto gopts = std::make_shared<GOptions>(argc, argv,
defineOptions());
CRTP base class that provides logging facilities to the derived class.
std::shared_ptr< GLogger > log
Shared logger used by the derived class for emitting messages.
void warning(Args &&... args) const
void debug(debug_type type, Args &&... args) const
void info(int level, Args &&... args) const
void doSomething(int a=0)
g1(const std::shared_ptr< GOptions > &gopt)
void doSomething(int a=0)
g2(const std::shared_ptr< GLogger > &log)
Lightweight CRTP base class that provides a pre-configured logger to derived types.
int main(int argc, char *argv[])
constexpr const char * G2_LOGGER
constexpr const char * G1_LOGGER