Skip to content

c++ library for program logging with a consitent message structure. Built upon boost::logger

License

Notifications You must be signed in to change notification settings

jarbassaidai/structuredLogger

Repository files navigation

structuredLogger

c++ library for program logging with a consitent message structure. Built upon boost::logger

small library that allows you to have structured log messages.

    Installation:
      source files
    • structuredlogger.cpp/h stackTrace.cpp/h
      testdirectory
    • test main.cpp,msgFormatVerify.cpp/h, stackdumptest.cpp/h
      requirements:
    • boost libraries
    • phthreads library
  • make all -f structuredLogger.cbp.mak or use codeblocks project file
  • documentation can be generated from doxygen

Features

  • choice of logging to 1-3 files, log, error, and debug
  • asynchronous logging
  • microsecond time stamp
  • filtered logging by severity

examples

record-number date severity [token] message
4 2017-03-06 14:48:09.108104 \ [void s_StructruedLogging::general_logging::test_method()] msg info GEN
24 2017-03-06 14:48:09.119579 \ [void s_StructruedLogging::debugLogging::test_method()] [0x00007ffff7fea740] msg debug DEBUG

Known bugs

  • logging timed module execution capture doesn't work
  • scope logging options don't work

About

c++ library for program logging with a consitent message structure. Built upon boost::logger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published