An open API service indexing awesome lists of open source software.

https://github.com/themarlboroman/log

C++ logger with multithreading support. Initially part of the libdansdl2.
https://github.com/themarlboroman/log

logger logging multithreaded standalone

Last synced: 8 months ago
JSON representation

C++ logger with multithreading support. Initially part of the libdansdl2.

Awesome Lists containing this project

README

          

# Simple logging library for C++.

## What are all these branches?

Ignore them all. Just use master, really. Classic was supposed to be the one that was in the old libdansdl2, not-so-classic was supposed to be an intermediate state and master is supposed to be a refactor. Just go with master.

## How does it work?

### using sentries.

- This is a bit old... just read the examples.
- Choose the kind of log you want to use (to an output stream, nowhere,
to file...).
- Instance it.
- Use the "sentries" to log. Sentries are instanced with
- lm::log(logger_instance).lock().[level_call()] //With locking capabiities for
multithreaded applications.
- lm::log(logger_instance).[level_call()]
- Sentries are used as if they were streams (lm::log(logger).info()<<"Hello"<