Documentation ¶
Overview ¶
Package logger a package for handling writing content to logs.
Index ¶
- type LogLevel
- type LogWriter
- func (logger *LogWriter) LogDebug(message string)
- func (logger *LogWriter) LogDebugf(format string, a ...interface{})
- func (logger *LogWriter) LogError(message string)
- func (logger *LogWriter) LogErrorf(format string, a ...interface{})
- func (logger *LogWriter) LogInfo(message string)
- func (logger *LogWriter) LogInfof(format string, a ...interface{})
- func (logger *LogWriter) LogTrace(message string)
- func (logger *LogWriter) LogTracef(format string, a ...interface{})
- func (logger *LogWriter) LogWarning(message string)
- func (logger *LogWriter) LogWarningf(format string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogWriter ¶
type LogWriter struct {
// contains filtered or unexported fields
}
LogWriter the struct used for writing logs.
func CreateLogger ¶
CreateLogger create the LogWriter struct with required content.
func (*LogWriter) LogDebugf ¶
LogDebugf write Debug level logs with formatting similar to fmt.Sprintf.
func (*LogWriter) LogErrorf ¶
LogErrorf write Error level logs with formatting similar to fmt.Sprintf.
func (*LogWriter) LogTracef ¶
LogTracef write Trace level logs with formatting similar to fmt.Sprintf.
func (*LogWriter) LogWarning ¶
LogWarning write Warning level logs.
func (*LogWriter) LogWarningf ¶
LogWarningf write Warning level logs with formatting similar to fmt.Sprintf.
Click to show internal directories.
Click to hide internal directories.