Documentation ¶
Index ¶
- Variables
- func BuildLoggerConfig(encoding, level, outputPath, errOutputPath string) (*zap.Config, error)
- func BuildLoggerConfigFromEnvVar(cfg *Config) (*zap.Config, error)
- func EncodingDefault() string
- func ErrOutputPathDefault() string
- func InitGlobalLogger(cfg *zap.Config) error
- func InitGlobalLoggerFromEnvVar(cfg *Config) error
- func LevelDefault() string
- func OutputPathDefault() string
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ZapConfig *zap.Config Log *zap.Logger SugaredLog *zap.SugaredLogger )
Functions ¶
func BuildLoggerConfig ¶
func EncodingDefault ¶
func EncodingDefault() string
func ErrOutputPathDefault ¶
func ErrOutputPathDefault() string
func InitGlobalLogger ¶
func LevelDefault ¶
func LevelDefault() string
func OutputPathDefault ¶
func OutputPathDefault() string
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func LoadConfig ¶
func LoadConfig() *Config
func (*Config) ErrOutputPath ¶
func (*Config) OutputPath ¶
Click to show internal directories.
Click to hide internal directories.