Documentation
¶
Index ¶
- Constants
- Variables
- func Alert(msg string)
- func AlertWait(msg string)
- func Debug(msg string)
- func Default(msg string)
- func DisableDebug()
- func EnableDebug()
- func Error(msg string)
- func Info(msg string)
- func InitializeBarkLogger()
- func LogWithContext(ctx *fasthttp.RequestCtx, msg string)
- func Notice(msg string)
- func Panic(msg string)
- func Println(msg string)
- func Warn(msg string)
- type Logger
- func NewBarkClient(remoteServerUrl, defaultLogLvl, svcName, sessName string, enableSlog bool, ...) Logger
- func NewDirectToDbBarkClient(dbUrl, defaultLogLvl, svcName, sessName string, enableSlog bool) Logger
- func NewDirectToDbBarkClientCustomSchemaTable(dbUrl, schemaName, tableName, defaultLogLvl, svcName, sessName string, ...) Logger
- func NewSloggerClient() Logger
- type StateStruct
Constants ¶
View Source
const (
Bark = "Bark"
)
Variables ¶
View Source
var BarkClient *client.Config
Functions ¶
func DisableDebug ¶
func DisableDebug()
func EnableDebug ¶
func EnableDebug()
func InitializeBarkLogger ¶
func InitializeBarkLogger()
func LogWithContext ¶
func LogWithContext(ctx *fasthttp.RequestCtx, 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 NewDirectToDbBarkClient ¶ added in v0.1.13
func NewDirectToDbBarkClientCustomSchemaTable ¶ added in v0.1.13
func NewSloggerClient ¶ added in v0.1.4
func NewSloggerClient() Logger
type StateStruct ¶
func State ¶
func State() *StateStruct
Click to show internal directories.
Click to hide internal directories.