Expand description
This crate provides macros for the style of CLI messages I like to use in my programs.
The base macros are:
info- Print an info-styled messagewarning- Print a warning-styled messageerror- Print an error-styled messagequestion- Print a question-styled messagedebug- Print a debug-styled message
These macros will print the message without a trailing newline, like how print does. Use the *ln variants of each of these macros to get println-like functionality (i.e. infoln).
The *_fmt variants work like the base macros, but return the string instead of printing it.
Macros§
- debug
- debug_
fmt - debugln
- error
- error_
fmt - errorln
- info
- info_
fmt - infoln
- question
- question_
fmt - warning
- warning_
fmt - warningln
Structs§
- HwLogger
logging - This struct allows you to use the
logcrate’s macros instead of the ones provided by this crate.