VC-Logger

VC-Logger

    VC-Logger is a C + + program common logging component and esay to use. Focus on three areas to consider when designing:
Function:
         The purpose of this journal is to meet the needs of most components of the application logging – the log output to a file or send to the application, but does not provide some of the complex but not commonly used functions. The log function components include:
  1. The output log information to a specified file
  2. Generates a log file daily
  3. For the GUI program, you can send log information to the specified window
  4. For the Console application, you can log information sent to the standard output (std :: cout)
  5. Support MBCS / UNICODE, Console / GUI, win32 / x64 Program
  6. Support for dynamic loading and static loading logging component DLL
  7. Multiple log-level support DEBUG / TRACE / INFO / WARN / ERROR / FATAL etc.
Availability:
       This component focuses on considering the availability of logs, try to make the user feel  simple and comfortable:
  1. Pure simple: do not rely on any libraries or frameworks
  2. Use interface simply  without complicated configuration or setup work
  3. Provide CStaticLogger and CDynamicLogger packaging for static or dynamic loading and operation logging component, users do not need attention to detail loaded
  4. If the program you want to record multiple log files and each log file simply create a corresponding object CStaticLogger or CDynamicLogger
  5. Just call the Log () / Debug () / Trace () / Info () / Warn () / Error () / Fatal () methods logging
  6. Logging method supports variable parameters
  7. Log output format: <time> <thread ID> <level> <log contents>
Performance:
       Performance is a component of whether it is worth using fixed target, the components of the process from design to coding as much as possible taking into account the performance optimization:
  1. Support multi-threading while sending a request to write the log
  2. Use a separate thread to write the log in the background, does not affect the normal execution threads
  3. Batch logging using batch mode
For details refer to and use: <Operating Guide>