logger

package
v0.0.0-...-0043176 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SYSLOG_LOG_EMERG   = "LOG_EMERG"
	SYSLOG_LOG_ALERT   = "LOG_ALERT"
	SYSLOG_LOG_CRIT    = "LOG_CRIT"
	SYSLOG_LOG_ERR     = "LOG_ERR"
	SYSLOG_LOG_WARNING = "LOG_WARNING"
	SYSLOG_LOG_NOTICE  = "LOG_NOTICE"
	SYSLOG_LOG_INFO    = "LOG_INFO"
	SYSLOG_LOG_DEBUG   = "LOG_DEBUG"
)

Code Action LOG_INFO

Variables

View Source
var Logger = logrus.New()

Functions

func Debug

func Debug(args ...interface{})

func Error

func Error(args ...interface{})

func Info

func Info(args ...interface{})

func InitLogger

func InitLogger()

initLogger function

func SetLoggerLevel

func SetLoggerLevel(loglevelString string)

SetLoggerLevel function

Types

type GormLogger

type GormLogger struct{}

func (*GormLogger) Print

func (*GormLogger) Print(v ...interface{})

gorm logger for logrus

type LogInfo

type LogInfo logrus.Fields

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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