Versions in this module Expand all Collapse all v1 v1.0.1 Sep 28, 2018 Changes in this version + func NewConsole(l zerolog.Level) zerolog.LevelWriter + func NewFileWriter(w *rotatefile.Writer, lv zerolog.Level) zerolog.LevelWriter + func NewSmtpWriter(username, password, host, subject string, sendto []string, level zerolog.Level) zerolog.LevelWriter + type Brush func([]byte) []byte + func NewBrush(color string) Brush + type ConsoleWriter struct + Level zerolog.Level + func (cw *ConsoleWriter) Write(p []byte) (n int, err error) + func (cw *ConsoleWriter) WriteLevel(l zerolog.Level, p []byte) (n int, err error) + type FileLogWriter struct + Level zerolog.Level + func (w *FileLogWriter) Write(p []byte) (n int, err error) + func (w *FileLogWriter) WriteLevel(l zerolog.Level, p []byte) (n int, err error) + type SmtpWriter struct + Host string + Level zerolog.Level + Password string + RecipientAddresses []string + Subject string + Username string + func (s *SmtpWriter) Write(b []byte) (int, error) + func (s *SmtpWriter) WriteLevel(l zerolog.Level, p []byte) (n int, err error)