Documentation ¶ Index ¶ type Context type Logger func New(logPath string, debug bool, fields map[string]interface{}) *Logger func (logger *Logger) Debug(message string, ctx Context) func (logger *Logger) Error(message string, ctx Context) func (logger *Logger) Info(message string, ctx Context) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Context ¶ type Context map[string]interface{} type Logger ¶ type Logger struct { // contains filtered or unexported fields } Logger func New ¶ func New(logPath string, debug bool, fields map[string]interface{}) *Logger getInstance init logger instance func (*Logger) Debug ¶ func (logger *Logger) Debug(message string, ctx Context) Debug func (*Logger) Error ¶ func (logger *Logger) Error(message string, ctx Context) Error func (*Logger) Info ¶ func (logger *Logger) Info(message string, ctx Context) Info Source Files ¶ View all Source files log.go zap.go Click to show internal directories. Click to hide internal directories.