Documentation ¶ Index ¶ func Debug(msg string) func Error(msg string) func Fatal(msg string) func Info(msg string) type LogOutput type Logger func New(outputmap map[LogOutput]io.Writer) Logger Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Debug ¶ func Debug(msg string) func Error ¶ func Error(msg string) func Fatal ¶ func Fatal(msg string) func Info ¶ func Info(msg string) Types ¶ type LogOutput ¶ type LogOutput int logging by instance const ( FileOutput LogOutput = iota ConsoleOutput ) type Logger ¶ type Logger interface { Debug(msg string) Info(msg string) Error(msg string) Fatal(msg string) } func New ¶ func New(outputmap map[LogOutput]io.Writer) Logger to add console writer you need to add this value in map ConsoleOutput : os.Stdout to add file log writer add this in map FileOutput : io.Writer (this is open io writer to file) Source Files ¶ View all Source files log.go Click to show internal directories. Click to hide internal directories.