CppLogging  1.0.4.0
C++ Logging Library
default.cpp

Default logger example

#include "logging/logger.h"
int main(int argc, char** argv)
{
// Create default logger
// Log some messages with different level
logger.Debug("Debug message");
logger.Info("Info message");
logger.Warn("Warning message");
logger.Error("Error message");
logger.Fatal("Fatal message");
return 0;
}
Logger interface.
Definition: logger.h:23
void Warn(std::string_view message) const
Log warning message.
Definition: logger.h:75
void Debug(std::string_view message) const
Log debug message.
Definition: logger.h:47
void Fatal(std::string_view message) const
Log fatal message.
Definition: logger.h:101
void Error(std::string_view message) const
Log error message.
Definition: logger.h:88
void Info(std::string_view message) const
Log information message.
Definition: logger.h:62
Logger interface definition.