log

package
v0.0.0-...-7a3fa1c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

Debug logs a debug message. msg is the message to log.

func Error

func Error(msg string)

Error logs an error message. msg is the message to log.

func Info

func Info(msg string)

Info logs an info message. msg is the message to log.

func SetLogConfig

func SetLogConfig(level zerolog.Level, output io.Writer)

SetLogConfig sets the logger configuration. level is the logging level. output is the output writer.

Types

type Log

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

Log is the struct that implements the Logger interface.

func (*Log) Debug

func (l *Log) Debug(msg string)

func (*Log) Error

func (l *Log) Error(msg string)

func (*Log) Info

func (l *Log) Info(msg string)

type Logger

type Logger interface {
	Info(msg string)
	Debug(msg string)
	Error(msg string)
}

Logger is the interface that wraps the basic logging methods.

Jump to

Keyboard shortcuts

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