LogIt++
Loading...
Searching...
No Matches
example_logit_customized.cpp File Reference
#include <LogIt.hpp>
#include <iostream>
#include <stdexcept>

Go to the source code of this file.

Macros

#define LOGIT_CONSOLE_PATTERN   "%Y-%m-%d %H:%M:%S [%L] %v"
 
#define LOGIT_FILE_LOGGER_PATH   "E:\\logs\\default_logs"
 
#define LOGIT_UNIQUE_FILE_LOGGER_PATH   "E:\\logs\\unique_logs"
 
#define LOGIT_FILE_LOGGER_AUTO_DELETE_DAYS   10
 

Enumerations

enum  LogLevel {
  L_DEBUG , L_INFO , L_WARN , L_ERROR ,
  L_FATAL
}
 

Functions

int main ()
 

Macro Definition Documentation

◆ LOGIT_CONSOLE_PATTERN

#define LOGIT_CONSOLE_PATTERN   "%Y-%m-%d %H:%M:%S [%L] %v"

Definition at line 4 of file example_logit_customized.cpp.

◆ LOGIT_FILE_LOGGER_AUTO_DELETE_DAYS

#define LOGIT_FILE_LOGGER_AUTO_DELETE_DAYS   10

Definition at line 7 of file example_logit_customized.cpp.

◆ LOGIT_FILE_LOGGER_PATH

#define LOGIT_FILE_LOGGER_PATH   "E:\\logs\\default_logs"

Definition at line 5 of file example_logit_customized.cpp.

◆ LOGIT_UNIQUE_FILE_LOGGER_PATH

#define LOGIT_UNIQUE_FILE_LOGGER_PATH   "E:\\logs\\unique_logs"

Definition at line 6 of file example_logit_customized.cpp.

Enumeration Type Documentation

◆ LogLevel

enum LogLevel
Enumerator
L_DEBUG 
L_INFO 
L_WARN 
L_ERROR 
L_FATAL 

Definition at line 14 of file example_logit_customized.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 22 of file example_logit_customized.cpp.