Documentation ¶
Index ¶
- Constants
- func DefaultFormat(message string, name string, level logging.Level, colorize bool) string
- type Backend
- func (self *Backend) Allowed(name string, level logging.Level) bool
- func (self *Backend) Configure(verbosity int, path *string)
- func (self *Backend) GetLogger(name string) logging.Logger
- func (self *Backend) GetMaxLevel(name string) logging.Level
- func (self *Backend) GetWriter() io.Writer
- func (self *Backend) SetBuffered(buffered bool)
- func (self *Backend) SetFormat(format FormatFunc)
- func (self *Backend) SetMaxLevel(name string, level logging.Level)
- type FormatFunc
- type Logger
- func (self Logger) Critical(message string)
- func (self Logger) Debug(message string)
- func (self Logger) Error(message string)
- func (self Logger) Info(message string)
- func (self Logger) Notice(message string)
- func (self Logger) Warning(message string)
- func (self Logger) Write(level logging.Level, message string)
Constants ¶
View Source
const BUFFER_SIZE = 10000
View Source
const LOG_FILE_WRITE_PERMISSIONS = 0600
View Source
const TIME_FORMAT = "2006/01/02 15:04:05.000"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
func NewBackend ¶
func NewBackend() *Backend
func (*Backend) SetBuffered ¶
func (*Backend) SetFormat ¶
func (self *Backend) SetFormat(format FormatFunc)
type FormatFunc ¶
Click to show internal directories.
Click to hide internal directories.