log

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	LOG_PRETTY    = 0 // own pretty printer with emojis , DEFAULT LOGGER
	PHUSLU_PRETTY = 1
	PHUSLU_JSON   = 2
)

define logger Ids

Variables

This section is empty.

Functions

func CheckErrFatal

func CheckErrFatal(err error)

CheckErrFatal: checks for error and exits the program #panic

func Debug

func Debug(s string)

Debug - print debuglog

func Error

func Error(err error, s string)

Error - print errorlog

func ErrorS

func ErrorS(s string)

ErrorS - print errorlog (string only)

func ExitNow added in v0.3.0

func ExitNow(msg string)

func Fatal

func Fatal(err error, s string)

Fatal - print errorlog and exit program # panic

func FatalS

func FatalS(s string)

FatalS - print error and exit program # panic (string only)

func Info

func Info(s string)

Info - print infolog

func Init

func Init(logger int, debug bool)

Init - setup logger and mode (phuslu)

func Message added in v0.3.0

func Message(s string)

Message - print plain message

func PanicNow

func PanicNow()

func Success added in v0.3.0

func Success(s string)

Success - print success message - YAY

func Warn

func Warn(s string)

Warn - print warnlog

Types

This section is empty.

Jump to

Keyboard shortcuts

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