Documentation ¶
Index ¶
Constants ¶
View Source
const ApplicationLogFile = "logs/application.log"
Relative path (from application root) to file where application log is stored.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger interface { Debug(interface{}, ...interface{}) Trace(interface{}, ...interface{}) Info(interface{}, ...interface{}) Warn(interface{}, ...interface{}) error Error(interface{}, ...interface{}) error Critical(interface{}, ...interface{}) error Close() }
Represents a logger with different levels of logs.
func NewApplicationLogger ¶
Creates and returns new application logger, ready for use.
Click to show internal directories.
Click to hide internal directories.