forked from ava-labs/avalanchego
-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.go
24 lines (21 loc) · 821 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (C) 2019-2021, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package logging
type RotatingWriterConfig struct {
MaxSize int `json:"maxSize"` // in megabytes
MaxFiles int `json:"maxFiles"`
MaxAge int `json:"maxAge"` // in days
Directory string `json:"directory"`
Compress bool `json:"compress"`
}
// Config defines the configuration of a logger
type Config struct {
RotatingWriterConfig
DisableWriterDisplaying bool `json:"disableWriterDisplaying"`
Assertions bool `json:"assertions"`
LogLevel Level `json:"logLevel"`
DisplayLevel Level `json:"displayLevel"`
LogFormat Format `json:"logFormat"`
MsgPrefix string `json:"-"`
LoggerName string `json:"-"`
}