forked from 0xPolygonHermez/zkevm-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
13 lines (12 loc) · 793 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
package log
// Config for log
type Config struct {
// Environment defining the log format ("production" or "development").
// In development mode enables development mode (which makes DPanicLevel logs panic), uses a console encoder, writes to standard error, and disables sampling. Stacktraces are automatically included on logs of WarnLevel and above.
// Check [here](https://pkg.go.dev/go.uber.org/[email protected]#NewDevelopmentConfig)
Environment LogEnvironment `mapstructure:"Environment" jsonschema:"enum=production,enum=development"`
// Level of log. As lower value more logs are going to be generated
Level string `mapstructure:"Level" jsonschema:"enum=debug,enum=info,enum=warn,enum=error,enum=dpanic,enum=panic,enum=fatal"`
// Outputs
Outputs []string `mapstructure:"Outputs"`
}