teolog

package
v0.0.0-...-2e4d9bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package teolog is the Teonet loger package

Index

Constants

View Source
const (
	NONE = iota
	ERROR
	CONNECT
	MESSAGE
	DEBUG
	DEBUGv
	DEBUGvv
)

Type of log messages

Variables

This section is empty.

Functions

func Connect

func Connect(p ...interface{})

Connect show CONNECT log string

func Connectf

func Connectf(module string, format string, p ...interface{})

Connectf show CONNECT log formatted string

func Debug

func Debug(p ...interface{})

Debug show DEBUG log string

func DebugV

func DebugV(p ...interface{})

DebugV show DEBUGv log string

func DebugVf

func DebugVf(module string, format string, p ...interface{})

DebugVf show DEBUGv formatted string

func DebugVfd

func DebugVfd(calldepth int, module string, format string, p ...interface{})

DebugVfd show DEBUGv formatted string (with calldepth)

func DebugVv

func DebugVv(p ...interface{})

DebugVv show DEBUGvv log string

func DebugVvf

func DebugVvf(module string, format string, p ...interface{})

DebugVvf show DEBUGvv log formatted string

func Debugf

func Debugf(module string, format string, p ...interface{})

Debugf show DEBUG log formatted string

func Error

func Error(p ...interface{})

Error show ERROR log string

func Errorf

func Errorf(module string, format string, p ...interface{})

Errorf show ERROR log formatted string

func Errorfd

func Errorfd(calldepth int, module string, format string, p ...interface{})

Errorfd show ERROR formatted string (with calldepth)

func Filter

func Filter() string

Filter return logger filter

func Init

func Init(level interface{}, flags int, filter string, toSyslogF bool, syslogPrefix string)

Init initial module and sets log level Avalable level values: NONE, CONNECT, ERROR, MESSAGE, DEBUG, DEBUGv, DEBUGvv

func Log

func Log(level int, p ...interface{})

Log show log string

func Logf

func Logf(level int, module string, format string, p ...interface{})

Logf show log formatted string

func Loglevel

func Loglevel() int

Loglevel get log level in int format

func LoglevelInt

func LoglevelInt(lstr string) (level int)

LoglevelInt return log level in int format

func LoglevelString

func LoglevelString(level int) (strLoglevel string)

LoglevelString return trudp log level in string format

func LoglevelStringColor

func LoglevelStringColor(level int) (strLoglevel string)

LoglevelStringColor return trudp log level in string format with ansi collor

func Message

func Message(p ...interface{})

Message show MESSAGE log string

func Messagef

func Messagef(module string, format string, p ...interface{})

Messagef show MESSAGE log formatted string

func None

func None(p ...interface{})

None show NONE log string

func Nonef

func Nonef(module string, format string, p ...interface{})

Nonef show NONE log formatted string

func SetFilter

func SetFilter(filter string)

SetFilter sets logger filter

func SetLoglevel

func SetLoglevel(level interface{})

SetLoglevel sets log level in int or string format

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL