log

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package log contains logging functions.

Index

Constants

This section is empty.

Variables

View Source
var Logger = logrus.New()

Logger is the logger.

Functions

func Debug

func Debug(args ...interface{})

Debug logs message on debug level.

func Debugf

func Debugf(format string, args ...interface{})

Debugf logs message on debug level.

func DiscordGoLogger

func DiscordGoLogger(msgL, _ int, format string, a ...interface{})

DiscordGoLogger overrides logger of discordgo library.

func Error

func Error(args ...interface{})

Error logs message on error level.

func Errorf

func Errorf(format string, args ...interface{})

Errorf logs message on error level.

func Fatal

func Fatal(args ...interface{})

Fatal logs message on fatal level.

func Fatalf

func Fatalf(format string, args ...interface{})

Fatalf logs message on fatal level.

func GetLevel

func GetLevel() logrus.Level

GetLevel returns the logger level.

func Info

func Info(args ...interface{})

Info logs message on info level.

func Infof

func Infof(format string, args ...interface{})

Infof logs message on info level.

func IsLevelEnabled

func IsLevelEnabled(level logrus.Level) bool

IsLevelEnabled checks if the log level of the logger is greater than the level param.

func SetLevel

func SetLevel(level logrus.Level)

SetLevel sets the logger level.

func Warn

func Warn(args ...interface{})

Warn logs message on warn level.

func Warnf

func Warnf(format string, args ...interface{})

Warnf logs message on warn level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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