Documentation
¶
Index ¶
- func Debug(message string)
- func Debugf(message string, v ...interface{})
- func Error(message string)
- func Errorf(message string, v ...interface{})
- func Fatal(message string)
- func Fatalf(message string, v ...interface{})
- func Info(message string)
- func Infof(message string, v ...interface{})
- func Shutdown()
- func Startup(options *Options) error
- func Warning(message string)
- func Warningf(message string, v ...interface{})
- type Data
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debug ¶
func Debug(message string)
Debug for logging any messages useful for debugging applications.
func Debugf ¶
func Debugf(message string, v ...interface{})
Debugf for logging any messages useful for debugging applications.
func Error ¶
func Error(message string)
Error for logging any error messages where the application is able to recover from.
func Errorf ¶
func Errorf(message string, v ...interface{})
Errorf for logging any error messages where the application is able to recover from.
func Fatal ¶
func Fatal(message string)
Fatal for logging any fatal messages where the application is unable to recover from.
func Fatalf ¶
func Fatalf(message string, v ...interface{})
Fatalf for logging any fatal messages where the application is unable to recover from.
func Infof ¶
func Infof(message string, v ...interface{})
Infof for logging any messages about useful information.
Types ¶
type Data ¶
type Data struct {
Level string `json:"level"`
Prefix string `json:"prefix"`
Timestamp string `json:"timestamp"`
Message string `json:"message"`
}
Data holds all the data stored in a log.
type Options ¶
type Options struct {
LogDebug bool
LogInfo bool
LogWarning bool
LogError bool
LogFatal bool
Prefix string
Directory string
}
Options holds all the possible options that can be set when loggin.
func DefaultOptions ¶
func DefaultOptions() *Options
DefaultOptions are the default options that can be set when logging.