logger

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

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

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitCustomFormatter

func InitCustomFormatter()

Types

type Logger

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

Logger represents the log levels.

func NewLogger

func NewLogger(name string) *Logger

NewLogger creates a new Logger instance with the specified name.

func (*Logger) Answer

func (ll *Logger) Answer(format string, params ...interface{})

Answer logs a message with the ANSWER level.

func (*Logger) Ask

func (ll *Logger) Ask(format string, params ...interface{})

func (*Logger) Debug

func (ll *Logger) Debug(format string, params ...interface{})

Debug logs a debug message. Debug logs a debug message.

func (*Logger) Error

func (ll *Logger) Error(format string, params ...interface{})

Error logs an error message.

func (*Logger) Info

func (ll *Logger) Info(format string, params ...interface{})

Info logs an info message.

func (*Logger) Warning

func (ll *Logger) Warning(format string, params ...interface{})

Warning logs a warning message.

Jump to

Keyboard shortcuts

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