logging

package
v0.0.0-...-52bc837 Latest Latest
Warning

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

Go to latest
Published: May 26, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(format string, v ...interface{})

Error registra uma mensagem de erro

func Fatal

func Fatal(format string, v ...interface{})

Fatal registra uma mensagem de erro e encerra o programa

func Info

func Info(format string, v ...interface{})

Info registra uma mensagem de informação

func SetupLogger

func SetupLogger(config Config)

SetupLogger configura os loggers com a configuração fornecida

func Warning

func Warning(format string, v ...interface{})

Warning registra uma mensagem de aviso

Types

type Config

type Config struct {
	InfoWriter    io.Writer
	WarningWriter io.Writer
	ErrorWriter   io.Writer
	Prefix        string
	Flag          int
}

Config contém as configurações do logger

func DefaultConfig

func DefaultConfig() Config

DefaultConfig retorna a configuração padrão para o logger

Jump to

Keyboard shortcuts

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