Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
App contains the objects from which the application will work, such as the application logger
func (*App) ConfigureLogging ¶
ConfigureLogging sets up the logging for the application When running Debug Mode is will be configured to add the caller to the message
func (*App) HandleError ¶
HandleError handles errors from the application This is to ensure that all errors are handled in the same way
type Log ¶
type Log struct {
// Level for the logging, ERROR, WARN, INFO, DEBUG
Level string `mapstructure:"level" json:",omitempty"`
// Format for the logging, TEXT or JSON
Format string `mapstructure:"format" json:",omitempty"`
// If the logging is in TEXT then should colour be used
Colour bool `mapstructure:"colour"`
// File that all logs should be saved to
File string `mapstructure:"file" json:",omitempty"`
}
Click to show internal directories.
Click to hide internal directories.