https://github.com/yrotak/dnlogger
A simple multi platform logging library
https://github.com/yrotak/dnlogger
console-log log logger logging messagebox multiplatform
Last synced: 14 days ago
JSON representation
A simple multi platform logging library
- Host: GitHub
- URL: https://github.com/yrotak/dnlogger
- Owner: yrotak
- License: mit
- Created: 2021-12-26T15:18:39.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-26T15:32:11.000Z (over 4 years ago)
- Last Synced: 2025-02-23T14:32:30.242Z (over 1 year ago)
- Topics: console-log, log, logger, logging, messagebox, multiplatform
- Language: C++
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dnlogger
> dnlogger is a lightweight library for logging easily, error report, warnings with an option to open a messagebox on fatal error compatible on all OS.
Let me know if you find any bug in the issue page or by contacting me on telegram or on my website.
```C++
dnlogger* logger = new dnlogger("lastest.log", true);
logger->clearLog();
logger->log("This is a log");
//(26-12-2021 15:54:58) [main] - This is a log
logger->warning("This is a warning");
//(26-12-2021 15:54:58) [main] - WARNING: This is a warning
logger->error("This is an error", false);
//(26-12-2021 15:54:58) [main] - ERROR: This is an error
logger->error("This is a fatal error that open a messagebox", true);
//(26-12-2021 15:54:58) [main] - FATAL ERROR! This is a fatal error that open a messagebox
// + Open a messagebox because it's a fatal error !
```
### Features
- Logging
- Messageboxes
- Console colors
Thanks to [Eleobert](https://github.com/Eleobert) for his messagebox [repository](https://github.com/Eleobert/MessageBox-X11).