Expand description
Library to store errors and log messages and display them later.
book: www.lesnake.xyz/opt/error_log
Macros§
- log_
debug - Attaches debug message to given
ErrorLog
- log_
error - Attach error message to given
ErrorLog
- log_
info - Attach information to given
ErrorLog
- log_
trace - Attach trace message to given
ErrorLog
- log_
warn - Attach warning to given
ErrorLog
- Prints to the standard output.
- println
- Prints to the standard output, with a newline.
- return_
err - Attach error to given
ErrorLog
and return it. - return_
ok - Set
ok
value of givenErrorLog
and return it - try_add
- Macro to
push_result()
and return givenErrorLog
if givenResult
is anErr
- try_
merge - Macro to
merge_result()
and return givenErrorLog
if givenResult
is anErr
Structs§
- Entry
- Entry containing an Error of type
E
or an log message - Error
Log - A Object to store multiple error messages and display them at once
Enums§
- Entry
Content - The Content of the Entry
- Format
Mode - How the error should be printed
- Level
Filter - An enum representing the available verbosity level filters of the logger.
Traits§
- Debug
Display - A trait Combining debug and display bounds
- Entries
Ext - Additional functions for
Entries
Type Aliases§
- Entries
- Type alias for
Vec<Entry<E>>
- Error
LogBox - Pre-defined
ErrorLog
usingBox<dyn DebugDisplay>
asE