Documentation ¶
Index ¶
Constants ¶
View Source
const ( LInfo levelKey = "INFO" LService levelKey = "SERVICE" LWarning levelKey = "WARNING" LError levelKey = "ERROR" LFatal levelKey = "FATAL" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logerer ¶ added in v1.1.0
type Logerer interface { Info(args ...interface{}) Service(args ...interface{}) Warning(args ...interface{}) Error(args ...interface{}) Fatal(args ...interface{}) Infof(format string, args ...interface{}) Servicef(format string, args ...interface{}) Warningf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Fatalf(format string, args ...interface{}) }
var Log Logerer
func InitLogger ¶
InitLogger иницилезирует логгер если pathFile = "", то фаил лога не создастся
type Options ¶ added in v1.1.0
type Options interface { SetLevelFormatConsole(level levelKey, format string) Options SetLevelFormatFile(level levelKey, format string) Options SetLevelFile(level levelKey, path string) Options SetLevelColor(level levelKey, color int) Options SetLevelBackColor(level levelKey, color int) Options SetFormatConsole(format string) Options SetFormatFile(format string) Options SetFile(path string) Options // contains filtered or unexported methods }
func InitOptions ¶ added in v1.1.0
func InitOptions() Options
Click to show internal directories.
Click to hide internal directories.