Documentation
¶
Index ¶
- func Custom(prefix string, message string, values ...interface{})
- func CustomLogger(prefix string) *log.Logger
- func Error(message string, values ...interface{})
- func Fatal(message string, values ...interface{})
- func Info(message string, values ...interface{})
- func Setup(logFile string, verbose bool)
- func Shutdown()
- func Todo(message string, values ...interface{})
- func Warning(message string, values ...interface{})
- type Logging
- func (l *Logging) Custom(prefix string, message string, values ...interface{})
- func (l *Logging) CustomLogger(prefix string) *log.Logger
- func (l *Logging) Error(message string, values ...interface{})
- func (l *Logging) Fatal(message string, values ...interface{}) error
- func (l *Logging) FileClosed() bool
- func (l *Logging) FileCountLimit() uint8
- func (l *Logging) Info(message string, values ...interface{})
- func (l *Logging) LogSettings(logSettings int)
- func (l *Logging) Setup(logFile string, verbose bool)
- func (l *Logging) SetupLoggers()
- func (l *Logging) Shutdown()
- func (l *Logging) Todo(message string, values ...interface{})
- func (l *Logging) Warning(message string, values ...interface{})
- func (l *Logging) Writer(mw io.Writer)
- type LoggingInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomLogger ¶
Types ¶
type Logging ¶
type Logging struct {
// contains filtered or unexported fields
}
func DefaultLogging ¶
func DefaultLogging() *Logging
func (*Logging) FileClosed ¶
func (*Logging) FileCountLimit ¶
func (*Logging) LogSettings ¶
func (*Logging) SetupLoggers ¶
func (l *Logging) SetupLoggers()
type LoggingInterface ¶
type LoggingInterface interface { Setup(logFile string, verbose bool) Shutdown() CustomLogger(prefix string) *log.Logger Custom(prefix string, message string, values ...interface{}) Info(message string, values ...interface{}) Warning(message string, values ...interface{}) Error(message string, values ...interface{}) Todo(message string, values ...interface{}) Fatal(message string, values ...interface{}) error }
var (
I LoggingInterface = DefaultLogging()
)
Click to show internal directories.
Click to hide internal directories.