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.
- Host: GitHub
- URL: https://github.com/themarlboroman/log
- Owner: TheMarlboroMan
- License: mit
- Created: 2018-04-08T17:45:37.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-02-11T17:46:59.000Z (about 2 years ago)
- Last Synced: 2025-02-28T22:21:31.473Z (12 months ago)
- Topics: logger, logging, multithreaded, standalone
- Language: C++
- Homepage:
- Size: 106 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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"<