cmake_minimum_required(VERSION 3.21)
project(<your_project>)
set(CMAKE_CXX_STANDARD 17)
# Add the include directoriesinclude_directories(/usr/local/include)
# Find the dt libraryfind_package(llog REQUIRED)
# Add the source filesset(SOURCE_FILEStest.cpp)
# Create the executableadd_executable(<your_project> ${SOURCE_FILES})
# Link against the llog librarytarget_link_libraries(<your_project> PRIVATE${LLOG_LIBRARIES})
llog::Config cfg;
cfg.useLowercaseLogLevels(); // Sets the log level to lowercase -> [info] / [i]
cfg.useUppercaseLogLevels(); // Sets the log level to uppercase -> [INFO] / [I]
cfg.useLogLevelId(); // Sets the log level to its ID -> [i] / [I]
cfg.useFullLogLevel(); // Sets the log level to its full version -> [info] / [INFO]llog::setLoggerConfig(cfg); // Set the loggers config
Changing timestamp pattern
llog::Config cfg;
constchar* newPattern{"%Y-%m-%d %H:%M:%S"};
cfg.setTimeStampPattern(newPattern); // Changes the timestamp patternllog::setLoggerConfig(cfg); // Set the loggers config