Skip to content

extcpp/logging

Repository files navigation

travis appveyor

Simple Logging Library

Known Issues:
  • Macro expansion with VisualStudio is incorrect! (Maybe we can avoid macros)
  • Builds on local windows but not appveyor.
Advantages:
  • Has variable and constexpr activation level checks. The constexpr check compares to the compiled in activation level. It is therefor less flexible but will be fully optimized away in case the level is not high enough to trigger log output.
  • Makes sure that static initialization happens very early. The logger can safely be used in other classes' constructors and destructors even if those classes are used in a static storage context.
  • Uses log-ids that enable to relate between log output and code location. (Uniqueness is not enforced by this code. A tool might be added in the future)
  • Has extra log macros (EXT_DEV, EXT_DEV_IF, ...) for development. This allows for efficient removal of development artifacts.
  • Has optional support to output locations in formats understood by gdb and vim. (Has to be requested at compile time.)
Disadvantages:
  • Works only with supported compilers (gcc, clang).
  • Setup MUST happen in single threaded part of application (may change).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published