logger

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Bark = "Bark"
)

Variables

View Source
var BarkClient *client.Config

Functions

func Alert

func Alert(msg string)

func AlertWait

func AlertWait(msg string)

func Debug

func Debug(msg string)

func Default

func Default(msg string)

func DisableDebug

func DisableDebug()

func EnableDebug

func EnableDebug()

func Error

func Error(msg string)

func Info

func Info(msg string)

func InitializeBarkLogger

func InitializeBarkLogger()

func LogWithContext

func LogWithContext(ctx *fasthttp.RequestCtx, msg string)

func Notice

func Notice(msg string)

func Panic

func Panic(msg string)

func Println

func Println(msg string)

func Warn

func Warn(msg string)

Types

type Logger

type Logger interface {
	Panic(string)
	Alert(string, bool)
	Error(string)
	Warn(string)
	Notice(string)
	Info(string)
	Debug(string)
	Println(string)
	Default(string)
}

func NewBarkClient added in v0.1.4

func NewBarkClient(remoteServerUrl, defaultLogLvl, svcName, sessName string, enableSlog bool, enableBulkSend bool) Logger

func NewEmbeddedServerBarkClient added in v0.1.4

func NewEmbeddedServerBarkClient(dbUrl, defaultLogLvl, svcName, sessName string, enableSlog bool) Logger

func NewSloggerClient added in v0.1.4

func NewSloggerClient() Logger

type StateStruct

type StateStruct struct {
	SelectedLogger string
	Initialized    bool
	Client         Logger
	sync.Mutex
}

func State

func State() *StateStruct

Jump to

Keyboard shortcuts

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