Documentation ¶
Index ¶
Constants ¶
View Source
const DefalutLogPath = "app.log"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsoleLogger ¶ added in v1.0.4
type ConsoleLogger struct { }
func (*ConsoleLogger) NewLogComponent ¶ added in v1.0.4
func (*ConsoleLogger) NewLogComponent(config ZapLoggerConfig) *zap.Logger
type FileLogger ¶ added in v1.0.4
type FileLogger struct { }
func (*FileLogger) NewLogComponent ¶ added in v1.0.4
func (*FileLogger) NewLogComponent(config ZapLoggerConfig) *zap.Logger
type ZapLoggerConfig ¶ added in v1.0.4
func (*ZapLoggerConfig) InitLogger ¶ added in v1.0.4
func (config *ZapLoggerConfig) InitLogger() *zap.Logger
Click to show internal directories.
Click to hide internal directories.