Crate mylog

Source

Modules§

logs
This module implements three macros facilitating logging.

Macros§

error
Format the content in argument like the macro “format!()”
and adding the current Timestamp and the level of to the log file.
This has the following format : [TIMESTAMP] [ERROR] [file:line] [content]
info
Format the content in argument like the macro “format!()”
and adding the current Timestamp and the level of to the log file.
This has the following format : [TIMESTAMP] [INFO] [file:line] [content]
warn
Format the content in argument like the macro “format!()”
and adding the current Timestamp and the level of to the log file.
This has the following format : [TIMESTAMP] [WARNING] [file:line] [content]