logger

package
v0.2.17 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Blue = "\033[34m"
View Source
var Cyan = "\033[36m"
View Source
var Green = "\033[32m"
View Source
var Magenta = "\033[35m"
View Source
var Orange = "\033[38;5;208m"
View Source
var Pink = "\033[38;5;206m"
View Source
var Purple = "\033[38;5;141m"
View Source
var Red = "\033[31m"
View Source
var Reset = "\033[0m"
View Source
var White = "\033[38;5;255m"
View Source
var Yellow = "\033[33m"

Functions

func NewConsoleLogger

func NewConsoleLogger() *consolelogger

func SetLogger

func SetLogger(l Logger)

Types

type Logger

type Logger interface {
	Info(format string, args ...interface{})
	DBInfo(format string, args ...interface{})
	Error(format string, args ...interface{})
	DBError(format string, args ...interface{})
	Fatal(format string, args ...interface{})
	DBFatal(format string, args ...interface{})
	Status(format string, args ...interface{})
	DBStatus(format string, args ...interface{})
	Request(format string, args ...interface{})
	Debug(format string, args ...interface{})
}

func GetLogger

func GetLogger() Logger

Jump to

Keyboard shortcuts

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