Documentation ¶
Index ¶
Constants ¶
View Source
const ( // LevelError is the error level LevelError = "error" // LevelInfo is the info level LevelInfo = "info" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppixLogger ¶
type AppixLogger interface {
AddMessageToQueue(notification LoggerNotification)
}
AppixLogger defines the core set of logging calls, to be used by other components
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger : The structure of the logger singleton
func NewAppixLogger ¶
NewAppixLogger : create a new instance of Logger if doesn't exist already. Otherwise return the actual instance
func (*Logger) AddMessageToQueue ¶
func (l *Logger) AddMessageToQueue(notification LoggerNotification)
AddMessageToQueue : Add a new LoggerNotification object to the Queue and print on stdout the message
type LoggerNotification ¶
LoggerNotification : The structure describing a notification to log
Click to show internal directories.
Click to hide internal directories.