Browse Source

En cours de développement

master
mls-361 9 months ago
parent
commit
b4e0605cab
  1. 14
      internal/logger/logger.go

14
internal/logger/logger.go

@ -41,18 +41,18 @@ func Build(cliApp bool, ccs *components.Components) (components.Logger, error) {
return nil, err
}
logger, err := logger.New(app.ID(), app.Name(), level, output)
if err != nil {
return nil, err
name := app.Name()
if cliApp {
name = "cli"
}
title := "APP"
if cliApp {
title = "CLI"
logger, err := logger.New(app.ID(), name, level, output)
if err != nil {
return nil, err
}
logger.Info( //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
title,
"APP",
"id", app.ID(),
"name", app.Name(),
"version", app.Version(),

Loading…
Cancel
Save