A FAIRE.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

31 lines
891 B

/*
------------------------------------------------------------------------------------------------------------------------
####### logger ####### Copyright (c) 2021 mls-361 ################################################## MIT License #######
------------------------------------------------------------------------------------------------------------------------
*/
package logger
import (
"forge.chapril.org/mls-361/logger"
"forge.chapril.org/armen/armen/internal/components"
)
// AFAIRE.
func Build(ccs *components.Components) (components.Logger, error) {
app := ccs.Application
cfg := ccs.Config.Logger()
level := cfg.Level
if app.Debug() > 0 {
level = "trace"
}
return logger.New(app.ID(), app.Name(), level, logger.NewOutputStderr())
}
/*
######################################################################################################## @(°_°)@ #######
*/