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

Go to the source code of this file.

Macros

#define LOGIT_BASE_PATH   "E:\\_repoz\\log-it-cpp"
 
#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 {
  _DEBUG , _INFO , _WARN , _ERROR ,
  _FATAL
}
 

Functions

int main ()
 

Macro Definition Documentation

◆ LOGIT_BASE_PATH

#define LOGIT_BASE_PATH   "E:\\_repoz\\log-it-cpp"

Definition at line 1 of file example_logit_customized.cpp.

◆ 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
_DEBUG 
_INFO 
_WARN 
_ERROR 
_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.