C++ lightweight exception logger.
Currently in development.
________________________________________
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
- #include exceptional.hpp into the files which require logging
- Add the
-rdynamic
flag when linking your object files (for better stacktrace information) - Edit the exception logger class(es) declared at the end of exceptional.hpp to your preferred usage
- Call exceptional::logger_name.LogWarning(value) or exceptional::logger_name.LogError(value) with a thrown exception value
(from any file with exceptional.hpp included)