Skip to content

jleung51/exceptional

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

C++ lightweight exception logger.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published