package
Version:
v0.0.0-...-2e4d9bc
Opens a new window with list of versions in this module.
Published: Dec 19, 2021
License: BSD-3-Clause
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package teolog is the Teonet loger package
- Constants
-
func Connect(p ...interface{})
-
func Connectf(module string, format string, p ...interface{})
-
func Debug(p ...interface{})
-
func DebugV(p ...interface{})
-
func DebugVf(module string, format string, p ...interface{})
-
func DebugVfd(calldepth int, module string, format string, p ...interface{})
-
func DebugVv(p ...interface{})
-
func DebugVvf(module string, format string, p ...interface{})
-
func Debugf(module string, format string, p ...interface{})
-
func Error(p ...interface{})
-
func Errorf(module string, format string, p ...interface{})
-
func Errorfd(calldepth int, module string, format string, p ...interface{})
-
func Filter() string
-
func Init(level interface{}, flags int, filter string, toSyslogF bool, ...)
-
func Log(level int, p ...interface{})
-
func Logf(level int, module string, format string, p ...interface{})
-
func Loglevel() int
-
func LoglevelInt(lstr string) (level int)
-
func LoglevelString(level int) (strLoglevel string)
-
func LoglevelStringColor(level int) (strLoglevel string)
-
func Message(p ...interface{})
-
func Messagef(module string, format string, p ...interface{})
-
func None(p ...interface{})
-
func Nonef(module string, format string, p ...interface{})
-
func SetFilter(filter string)
-
func SetLoglevel(level interface{})
View Source
const (
NONE = iota
ERROR
CONNECT
MESSAGE
DEBUG
DEBUGv
DEBUGvv
)
Type of log messages
func Connect(p ...interface{})
Connect show CONNECT log string
func Connectf(module string, format string, p ...interface{})
Connectf show CONNECT log formatted string
func Debug(p ...interface{})
Debug show DEBUG log string
func DebugV(p ...interface{})
DebugV show DEBUGv log string
func DebugVf(module string, format string, p ...interface{})
DebugVf show DEBUGv formatted string
func DebugVfd(calldepth int, module string, format string, p ...interface{})
DebugVfd show DEBUGv formatted string (with calldepth)
func DebugVv(p ...interface{})
DebugVv show DEBUGvv log string
func DebugVvf(module string, format string, p ...interface{})
DebugVvf show DEBUGvv log formatted string
Debugf show DEBUG log formatted string
func Error(p ...interface{})
Error show ERROR log string
Errorf show ERROR log formatted string
func Errorfd(calldepth int, module string, format string, p ...interface{})
Errorfd show ERROR formatted string (with calldepth)
Filter return logger filter
Init initial module and sets log level
Avalable level values: NONE, CONNECT, ERROR, MESSAGE, DEBUG, DEBUGv, DEBUGvv
func Log(level int, p ...interface{})
Log show log string
Logf show log formatted string
Loglevel get log level in int format
LoglevelInt return log level in int format
func LoglevelString(level int) (strLoglevel string)
LoglevelString return trudp log level in string format
func LoglevelStringColor(level int) (strLoglevel string)
LoglevelStringColor return trudp log level in string format with ansi collor
func Message(p ...interface{})
Message show MESSAGE log string
func Messagef(module string, format string, p ...interface{})
Messagef show MESSAGE log formatted string
func None(p ...interface{})
None show NONE log string
Nonef show NONE log formatted string
SetFilter sets logger filter
func SetLoglevel(level interface{})
SetLoglevel sets log level in int or string format
Source Files
¶
Click to show internal directories.
Click to hide internal directories.