Documentation ¶
Index ¶
- func Append(logger Logger, v interface{})
- func DecodeClassName(class Class) string
- type Class
- type Logger
- func New(trace io.Writer, info io.Writer, warning io.Writer, error io.Writer, ...) Logger
- func NewDebug(prefix string) Logger
- func NewDiscard() Logger
- func NewEx(trace io.Writer, info io.Writer, warning io.Writer, error io.Writer, flag int, ...) Logger
- func NewFile(fileName string, prefix string) Logger
- type Metrics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeClassName ¶
Types ¶
type Logger ¶
type Logger interface { Trace(v interface{}) Info(v interface{}) Warning(v interface{}) Error(v interface{}) Metrics() Metrics }
func NewDiscard ¶
func NewDiscard() Logger
type Metrics ¶
type Metrics struct { Traces int32 `json:"traces,omitempty"` // Count of trace messages Infos int32 `json:"infos,omitempty"` // Count of information messages Errors int32 `json:"errors,omitempty"` // Count of error messages Warnings int32 `json:"warnings,omitempty"` // Count of warning messages }
Statistics for logger
Click to show internal directories.
Click to hide internal directories.