Still trying to just link some stuff bro
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Jef Roosens 2022-01-12 20:54:54 +01:00
parent cfcca90dfc
commit 05e725eb4e
Signed by: Jef Roosens
GPG key ID: 955C0660072F691F
11 changed files with 43 additions and 28 deletions

View file

@ -1,29 +0,0 @@
module web
import log
pub fn (mut ctx Context) log(msg &string, level log.Level) {
lock ctx.logger {
ctx.logger.send_output(msg, level)
}
}
pub fn (mut ctx Context) lfatal(msg &string) {
ctx.log(msg, log.Level.fatal)
}
pub fn (mut ctx Context) lerror(msg &string) {
ctx.log(msg, log.Level.error)
}
pub fn (mut ctx Context) lwarn(msg &string) {
ctx.log(msg, log.Level.warn)
}
pub fn (mut ctx Context) linfo(msg &string) {
ctx.log(msg, log.Level.info)
}
pub fn (mut ctx Context) ldebug(msg &string) {
ctx.log(msg, log.Level.debug)
}