Documentation ¶
Index ¶
Constants ¶
View Source
const ( RedisLoggerQueue = "core.logs" MaxRedisQueueSize = 100000 )
Variables ¶
View Source
var (
Disabled = []int{stream.LevelInvalid}
)
Functions ¶
Types ¶
type ConsoleLogger ¶
type ConsoleLogger struct {
// contains filtered or unexported fields
}
ConsoleLogger log message to the console
func (*ConsoleLogger) Log ¶
func (logger *ConsoleLogger) Log(cmd *core.Command, msg *stream.Message)
Log messages
func (*ConsoleLogger) LogRecord ¶
func (logger *ConsoleLogger) LogRecord(record *LogRecord)
type DBLogger ¶
type DBLogger struct {
// contains filtered or unexported fields
}
DBLogger implements a logger that stores the message in a bold database.
type Logger ¶
Logger interface
func NewConsoleLogger ¶
NewConsoleLogger creates a simple console logger that prints log messages to Console.
func NewDBLogger ¶
NewDBLogger creates a new Database logger, it stores the logged message in database factory: is the DB connection factory defaults: default log levels to store in db if is not specificed by the logged message.
Click to show internal directories.
Click to hide internal directories.