vieter/src/cron/daemon/log.v

37 lines
706 B
Coq
Raw Normal View History

module daemon
// lfatal create a log message with the fatal level
2022-11-01 21:10:45 +01:00
pub fn (mut d Daemon) lfatal(msg string) {
lock d.logger {
d.logger.fatal(msg)
}
}
// lerror create a log message with the error level
2022-11-01 21:10:45 +01:00
pub fn (mut d Daemon) lerror(msg string) {
lock d.logger {
d.logger.error(msg)
}
}
// lwarn create a log message with the warn level
2022-11-01 21:10:45 +01:00
pub fn (mut d Daemon) lwarn(msg string) {
lock d.logger {
d.logger.warn(msg)
}
}
// linfo create a log message with the info level
2022-11-01 21:10:45 +01:00
pub fn (mut d Daemon) linfo(msg string) {
lock d.logger {
d.logger.info(msg)
}
}
// ldebug create a log message with the debug level
2022-11-01 21:10:45 +01:00
pub fn (mut d Daemon) ldebug(msg string) {
lock d.logger {
d.logger.debug(msg)
}
}