Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrIllegalLevel = errors.New("illegal level") DefaultLevelNames Names = &defaultNames{} DefaultLevelNamesFacade = NewNamesFacade(func() Names { return DefaultLevelNames }) )
Functions ¶
This section is empty.
Types ¶
type Names ¶
func NewNamesFacade ¶ added in v0.5.0
type NamesAware ¶
type NamesAware interface {
GetLevelNames() Names
}
type Serializable ¶
type Serializable interface { encoding.TextMarshaler encoding.TextUnmarshaler fmt.Stringer flag.Value AsLevel() *log.Level }
func AsSerializable ¶
func AsSerializable(level *log.Level, aware NamesAware) Serializable
Click to show internal directories.
Click to hide internal directories.