Documentation ¶
Overview ¶
go logger package. ideas from java log4j. go lang provide log package, but not very configurable. Logger include some concepts: Catalog: RunLevel: Appender:
Index ¶
- func AddAppender(appender logapi.Appender, lines []string)
- func GetApiLogger(catalog string) logapi.Logger
- func GetLogger(catalog string) *wlog.WrapLogger
- func GetMainLogger() *wlog.WrapLogger
- func GetWrapLogger(catalog string) *wlog.WrapLogger
- func LoadConfig(location string)
- func SetAppenderLevel(appenderName, level string, catalogs ...string)
- func SetDebugLevel(catalogs ...string)
- func SetErrorLevel(catalogs ...string)
- func SetInfoLevel(catalogs ...string)
- func SetLevel(level string, catalogs ...string)
- func SetTraceLevel(catalogs ...string)
- func SetWarnLevel(catalogs ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetApiLogger ¶
GetApiLogger valid wlog implements Logger API
func GetMainLogger ¶
func GetMainLogger() *wlog.WrapLogger
func GetWrapLogger ¶
func GetWrapLogger(catalog string) *wlog.WrapLogger
GetWrapLogger returns wlog.WrapLogger
func SetAppenderLevel ¶
SetAppenderLevel
func SetDebugLevel ¶
func SetDebugLevel(catalogs ...string)
func SetErrorLevel ¶
func SetErrorLevel(catalogs ...string)
func SetInfoLevel ¶
func SetInfoLevel(catalogs ...string)
func SetWarnLevel ¶
func SetWarnLevel(catalogs ...string)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.