Documentation
¶
Index ¶
- Constants
- Variables
- func DBG(format string, v ...interface{})
- func DBGf(format string, v ...interface{})
- func ERR(format string, v ...interface{})
- func ERRf(format string, v ...interface{})
- func FAT(format string, v ...interface{})
- func Fatalf(format string, v ...interface{})
- func Fini()
- func GetLevel() int
- func INF(format string, v ...interface{})
- func INFf(format string, v ...interface{})
- func Init(logurl string) (err error)
- func ParseLevel(lv string) (int, bool)
- func SetLevel(level int)
- func TRC(format string, v ...interface{})
- func TRCf(format string, v ...interface{})
- func WRN(format string, v ...interface{})
- func WRNf(format string, v ...interface{})
Constants ¶
View Source
const ( LevelTRC = iota LevelDBG LevelINF LevelWRN LevelERR )
Variables ¶
View Source
var (
ErrLevelInvalid = errors.New("Level invalid. Level must be TRC|DBG|INF|WRN|ERR")
)
Functions ¶
func Init ¶
@logurl
logurl used to determin to which place and how the log will be write, generate format is "[schema]://[uri],[key=value]...", for example file:///home/logs/demo,[rotate=day|none],[level=TRC|DBG|INF|WRN|ERR]
func ParseLevel ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.