logger

package
v0.0.0-...-f382dc8 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(name string) log.SimpleLogger

Get if exists, or return a new logger

func GetLevel

func GetLevel() log.LevelType

GetLevel get current global logging level.

func New

func New(name string) log.SimpleLogger

New creates a logger with name

func ParseLogLevel

func ParseLogLevel(l string) log.LevelType

ParseLogLevel parse log level and return log.LevelType

func SetAppID

func SetAppID(id string)

SetAppID sets the global app id.

func SetLevel

func SetLevel(lv log.LevelType)

SetLevel sets the global logging level.

func SetSyslog

func SetSyslog(isOn bool)

SetSyslog enable or disable syslog on all loggers

func Wait

func Wait()

Wait wait log output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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