https://github.com/jurassiclizard/logger
A minimalist C++ logger implementation I created for my personal projects. Nothing fancy, just the logging functionality I need without the bloat.
https://github.com/jurassiclizard/logger
cmake cpp cpp20 logger logging minimalist
Last synced: about 1 year ago
JSON representation
A minimalist C++ logger implementation I created for my personal projects. Nothing fancy, just the logging functionality I need without the bloat.
- Host: GitHub
- URL: https://github.com/jurassiclizard/logger
- Owner: jurassicLizard
- License: mit
- Created: 2025-04-20T15:30:04.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-12T14:55:39.000Z (about 1 year ago)
- Last Synced: 2025-05-12T15:57:57.653Z (about 1 year ago)
- Topics: cmake, cpp, cpp20, logger, logging, minimalist
- Language: C++
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# jlizard logger
A simple C++ logging utility I created for my personal projects. This is nothing fancy - just a straightforward logging implementation that does what I need without the complexity of larger logging frameworks.
## Why another logger?
Yes, I know there are plenty of logging libraries out there. Many are excellent but often come with more features than I need. This minimal implementation gives me just enough functionality for day-to-day development without the overhead.
## Usage
```cpp
#include "logger.h"
using namespace jlizard::logger;
int main() {
info("Application started");
// Do something important...
warn("This operation might be slow");
// If something goes wrong
error("Failed to process data");
return 0;
}
```
## Integration
``` cmake
add_subdirectory(path/to/jlizard-logger)
target_link_libraries(your_target PRIVATE jlizard::logger)
```
## Tests
The project includes a test suite that can be run using CTest. Enable testing in your CMake build to run them:
``` bash
mkdir build && cd build
cmake -DBUILD_TESTING=ON ..
make
ctest
```
## License
MIT License — See [LICENSE.md](LICENSE.md) for details.