logger

package
v0.0.0-...-2327e9c Latest Latest
Warning

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

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

Documentation

Overview

Copyright © 2023 Codoworks Author: Dexter Codo Contact: dexter.codo@gmail.com

Copyright © 2023 Codoworks Author: Dexter Codo Contact: dexter.codo@gmail.com

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, args ...interface{})

func Error

func Error(msg string, args ...interface{})

func Fatal

func Fatal(msg string, args ...interface{})

func GetLogger

func GetLogger() *log.MyLogger

func Info

func Info(msg string, args ...interface{})

func Panic

func Panic(msg string, args ...interface{})

func SetDevMode

func SetDevMode()

func SetLogger

func SetLogger(lvl string)

func Warn

func Warn(msg string, args ...interface{})

Types

type LogLevel

type LogLevel string
const (
	DebugLvl LogLevel = "debug"
	InfoLvl  LogLevel = "info"
	WarnLvl  LogLevel = "warn"
	ErrorLvl LogLevel = "error"
	FatalLvl LogLevel = "fatal"
	PanicLvl LogLevel = "panic"
)

Jump to

Keyboard shortcuts

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