Logger

Ideal logger recipe

Main features of the “ideal c++ logger”:

  1. Clean structure of code without additional dependencies.
    It should be easy to include logger as a static library with a few files
  2. Logger should be configurable:
    • Trace source: file/console
    • Retention: time and file size
    • Output format: date, code line, context
  3. Should be as much asynchronous as possible.
    Ex.: all flashing to files should be processed at the background thread
  4. Smart line termination processing