https://github.com/jleung51/exceptional
C++ lightweight exception logger.
https://github.com/jleung51/exceptional
cpp exceptions
Last synced: 11 months ago
JSON representation
C++ lightweight exception logger.
- Host: GitHub
- URL: https://github.com/jleung51/exceptional
- Owner: jleung51
- License: mit
- Created: 2016-02-18T22:41:57.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-10-19T07:17:29.000Z (over 9 years ago)
- Last Synced: 2025-06-08T16:02:30.880Z (about 1 year ago)
- Topics: cpp, exceptions
- Language: C++
- Size: 42 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Exceptional
C++ lightweight exception logger.
Currently in development.
## Example Output
________________________________________
LOG CREATED AT 2016-03-18T00:01:09
Warning:
Logged at: 2016-03-18T00:01:09
Type of exception value: std::out_of_range
Exception message: Exception message for std::out_of_range.
Error:
Logged at: 2016-03-18T00:01:09
Type of exception value: std::out_of_range
Exception message: Exception message for std::out_of_range.
Warnings logged: 1
Errors logged: 1
## Instructions for Use
1. #include _exceptional.hpp_ into the files which require logging
2. Add the `-rdynamic` flag when linking your object files (for better stacktrace information)
3. Edit the exception logger class(es) declared at the end of _exceptional.hpp_ to your preferred usage
4. Call exceptional::*logger\_name*.LogWarning(value) or exceptional::*logger\_name*.LogError(value) with a thrown exception value
(from any file with _exceptional.hpp_ included)