Simple-Log
alpha-v0.7
|
Dominic Koepke
Mail: DNKpp2011@gmail.com
BSL-1.0 (free, open source)
This is a highly customizable multithreaded logging library, which makes heavy use of loosly coupled concepts rather than macros. Other than many other libraries, there are no singleton classes or forced global objects. It's up to the users if they want globals or not.
If your goal is simply logging everything to console or a file, than you may want to begin with the <ReadyToGo>
-header, which will set-up everything you'll need to be able start logging (also look at the short examples at the bottom of this readme). As you'll get used to the library you'll probably want to start customizing the behaviour of your sinks or even exchange types of Record's properties. This library lets you do this. Just head over to docs page https://dnkpp.github.io/Simple-Log/ or have a look at /src/examples directory. If you need an example for some advanced technics, don't hesitate asking me. As this library is growing I'll add more and more (hopefully useful) examples.
A friendly reminder at the end: This library is currently in an alpha state, where it may be possible that some API breaks will happen. If you need a fully stable library from now on, this is unfortunatly not what you're looking for. I'm sorry, but perhaps it will be worth a second look in the near future.
This library can easily be integrated into your project via CMake target_link_libraries command.
This will add the the include path "<simple_log_install_dir>/include", thus you are able to include all headers via
It is possible fetching this library via CMakes FetchContent module.
This is an example, which will print every message onto the console. Users will automatically receive a Core instance (gCore), Console Sink (gConsoleSink) and a Logger (gLog).