Documentation ¶
Index ¶
- func ValidLevelValues() (result []string)
- type Fields
- type Level
- type Logg
- type LogrusLogg
- func (l *LogrusLogg) AddPrefixPath(prefix string) Logg
- func (l *LogrusLogg) Data() (result Fields)
- func (l *LogrusLogg) Debug(args ...interface{})
- func (l *LogrusLogg) Debugf(format string, args ...interface{})
- func (l *LogrusLogg) Error(args ...interface{})
- func (l *LogrusLogg) Errorf(format string, args ...interface{})
- func (l *LogrusLogg) Info(args ...interface{})
- func (l *LogrusLogg) Infof(format string, args ...interface{})
- func (l *LogrusLogg) Level() Level
- func (l *LogrusLogg) Output() io.Writer
- func (l *LogrusLogg) SetOutput(output io.Writer)
- func (l *LogrusLogg) Spawn() Logg
- func (l *LogrusLogg) Trace(args ...interface{})
- func (l *LogrusLogg) Tracef(format string, args ...interface{})
- func (l *LogrusLogg) Warn(args ...interface{})
- func (l *LogrusLogg) Warnf(format string, args ...interface{})
- func (l *LogrusLogg) WithError(err error) Logg
- func (l *LogrusLogg) WithField(key string, value interface{}) (result Logg)
- func (l *LogrusLogg) WithFields(fields Fields) (result Logg)
- func (l *LogrusLogg) WithLazyField(key string, fnc func() interface{}) (result Logg)
- func (l *LogrusLogg) WithPrefix(prefix string) Logg
- type StdoutFileWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidLevelValues ¶
func ValidLevelValues() (result []string)
Types ¶
type Logg ¶
type Logg interface { WithField(key string, value interface{}) Logg WithFields(fields Fields) Logg WithError(err error) Logg WithPrefix(prefix string) Logg AddPrefixPath(prefix string) Logg Data() Fields Level() Level Output() io.Writer Spawn() Logg SetOutput(output io.Writer) Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Warnf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Debug(args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) Tracef(format string, args ...interface{}) Trace(args ...interface{}) WithLazyField(key string, fnc func() interface{}) (result Logg) }
Main logger interface
type LogrusLogg ¶
type LogrusLogg struct {
// contains filtered or unexported fields
}
Logrus logg implementation
func NewLogrusLogg ¶
func NewLogrusLogg(logrusInput interface{}) *LogrusLogg
func (*LogrusLogg) AddPrefixPath ¶
func (l *LogrusLogg) AddPrefixPath(prefix string) Logg
func (*LogrusLogg) Data ¶
func (l *LogrusLogg) Data() (result Fields)
func (*LogrusLogg) Debug ¶
func (l *LogrusLogg) Debug(args ...interface{})
func (*LogrusLogg) Debugf ¶
func (l *LogrusLogg) Debugf(format string, args ...interface{})
func (*LogrusLogg) Error ¶
func (l *LogrusLogg) Error(args ...interface{})
func (*LogrusLogg) Errorf ¶
func (l *LogrusLogg) Errorf(format string, args ...interface{})
func (*LogrusLogg) Info ¶
func (l *LogrusLogg) Info(args ...interface{})
func (*LogrusLogg) Infof ¶
func (l *LogrusLogg) Infof(format string, args ...interface{})
func (*LogrusLogg) Level ¶
func (l *LogrusLogg) Level() Level
func (*LogrusLogg) Output ¶
func (l *LogrusLogg) Output() io.Writer
func (*LogrusLogg) SetOutput ¶
func (l *LogrusLogg) SetOutput(output io.Writer)
func (*LogrusLogg) Spawn ¶
func (l *LogrusLogg) Spawn() Logg
func (*LogrusLogg) Trace ¶
func (l *LogrusLogg) Trace(args ...interface{})
func (*LogrusLogg) Tracef ¶
func (l *LogrusLogg) Tracef(format string, args ...interface{})
func (*LogrusLogg) Warn ¶
func (l *LogrusLogg) Warn(args ...interface{})
func (*LogrusLogg) Warnf ¶
func (l *LogrusLogg) Warnf(format string, args ...interface{})
func (*LogrusLogg) WithError ¶
func (l *LogrusLogg) WithError(err error) Logg
func (*LogrusLogg) WithField ¶
func (l *LogrusLogg) WithField(key string, value interface{}) (result Logg)
func (*LogrusLogg) WithFields ¶
func (l *LogrusLogg) WithFields(fields Fields) (result Logg)
func (*LogrusLogg) WithLazyField ¶
func (l *LogrusLogg) WithLazyField(key string, fnc func() interface{}) (result Logg)
func (*LogrusLogg) WithPrefix ¶
func (l *LogrusLogg) WithPrefix(prefix string) Logg
type StdoutFileWriter ¶
type StdoutFileWriter struct {
// contains filtered or unexported fields
}
func New ¶
func New(logFilePath string) (result *StdoutFileWriter)
func (*StdoutFileWriter) DisableStdout ¶
func (l *StdoutFileWriter) DisableStdout()
func (*StdoutFileWriter) Reset ¶
func (l *StdoutFileWriter) Reset()
Click to show internal directories.
Click to hide internal directories.