logger

package
v0.0.0-...-5fa8bf8 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(v ...any)

Fatal is equivalent to l.Print() followed by a call to os.Exit(1).

func Fatalf

func Fatalf(format string, v ...any)

Fatalf is equivalent to l.Printf() followed by a call to os.Exit(1).

func Fatalln

func Fatalln(v ...any)

Fatalln is equivalent to l.Println() followed by a call to os.Exit(1).

func GetLogger

func GetLogger() *log.Logger

func InitLogger

func InitLogger()

func NewLogger

func NewLogger(path string, prefix string) *log.Logger

func Panic

func Panic(v ...any)

Panic is equivalent to l.Print() followed by a call to panic().

func Panicf

func Panicf(format string, v ...any)

Panicf is equivalent to l.Printf() followed by a call to panic().

func Panicln

func Panicln(v ...any)

Panicln is equivalent to l.Println() followed by a call to panic().

func Print

func Print(v ...any)

Print calls l.Output to print to the logger. Arguments are handled in the manner of

func Printf

func Printf(format string, v ...any)

Printf calls l.Output to print to the logger. Arguments are handled in the manner of fmt.Printf.

func Println

func Println(v ...any)

Println calls l.Output to print to the logger. Arguments are handled in the manner of fmt.Println.

Types

This section is empty.

Jump to

Keyboard shortcuts

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