Documentation ¶
Overview ¶
Package golog integrates the WebPA common logging with github.com/ian-kent/go-log.
Index ¶
Constants ¶
View Source
const ( ConsoleFileName string = "console" DefaultPattern Pattern = "[%d] [%p] (%l) %m%n" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggerFactory ¶
type LoggerFactory struct { File string `json:"file"` Level string `json:"level"` Pattern Pattern `json:"pattern"` MaxSize int64 `json:"maxSize"` MaxBackup int `json:"maxBackup"` }
LoggerFactory is the golog-specific factory for logs. It is configurable via JSON.
func (*LoggerFactory) NewAppender ¶
func (factory *LoggerFactory) NewAppender() (appenders.Appender, error)
NewAppender creates a golog Appender from this LoggerFactory's configuration
type Pattern ¶
type Pattern string
Pattern is a log4j-style pattern for use with go-log
func (Pattern) MarshalJSON ¶
func (*Pattern) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.