logger

package
v0.0.0-...-4f2ec73 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

A Logger represents a logger.

func NewLogger

func NewLogger(threshold int, location *time.Location) *Logger

NewLogger creates a logger.

func (*Logger) Error

func (l *Logger) Error(msg string)

Error outputs a fatal level log.

func (*Logger) Fatal

func (l *Logger) Fatal(msg string)

Fatal outputs a fatal level log.

func (*Logger) Info

func (l *Logger) Info(msg string)

Info outputs a fatal level log.

func (*Logger) Warn

func (l *Logger) Warn(msg string)

Warn outputs a fatal level log.

Jump to

Keyboard shortcuts

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