Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(serviceName string, opts ...LoggerOption)
Types ¶
type LoggerConfig ¶
type LoggerConfig struct {
// contains filtered or unexported fields
}
type LoggerOption ¶
type LoggerOption func(*LoggerConfig)
func WithConsoleLogger ¶
func WithConsoleLogger() LoggerOption
func WithFileLogger ¶
func WithFileLogger(fileName string) LoggerOption
func WithLogLevel ¶
func WithLogLevel(logLevel int) LoggerOption
Click to show internal directories.
Click to hide internal directories.