Documentation ¶ Index ¶ type LogLevel func (l LogLevel) String() string type Logger func NewLogger() (*Logger, error) func (l *Logger) LogError(err error, source string) func (l *Logger) LogFatal(err error, source string) func (l *Logger) LogInfo(message, source string) func (l *Logger) WriteToStandarOutput(message string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type LogLevel ¶ type LogLevel int8 const ( LevelInfo LogLevel = iota LevelError LevelFatal ) func (LogLevel) String ¶ func (l LogLevel) String() string type Logger ¶ type Logger struct { Out *os.File // contains filtered or unexported fields } func NewLogger ¶ func NewLogger() (*Logger, error) func (*Logger) LogError ¶ func (l *Logger) LogError(err error, source string) func (*Logger) LogFatal ¶ func (l *Logger) LogFatal(err error, source string) LogFatal panics the given error func (*Logger) LogInfo ¶ func (l *Logger) LogInfo(message, source string) func (*Logger) WriteToStandarOutput ¶ func (l *Logger) WriteToStandarOutput(message string) Source Files ¶ View all Source files logging.go Click to show internal directories. Click to hide internal directories.