logger

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewZapLogger added in v1.0.1

func NewZapLogger() contracts.Logger

NewZapLogger cria um novo logger do Uber.

Types

type ZapLogger added in v1.0.1

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

ZapLogger é uma implementação do contrato de Logger que usa o logger do Uber.

func (*ZapLogger) Debug added in v1.0.1

func (z *ZapLogger) Debug(msg string, fields ...contracts.Field)

Debug logs a message at the DEBUG level

func (*ZapLogger) Error added in v1.0.1

func (z *ZapLogger) Error(msg string, fields ...contracts.Field)

Error logs a message at the ERROR level

func (*ZapLogger) Fatal added in v1.0.1

func (z *ZapLogger) Fatal(msg string, fields ...contracts.Field)

Fatal logs a message at the FATAL level and terminates the application

func (*ZapLogger) Field added in v1.0.1

func (z *ZapLogger) Field() contracts.Field

Field returns a new instance of Field

func (*ZapLogger) Info added in v1.0.1

func (z *ZapLogger) Info(msg string, fields ...contracts.Field)

Info logs a message at the INFO level

func (*ZapLogger) SetDestination added in v1.0.1

func (z *ZapLogger) SetDestination(dest contracts.LogDestination, filePath ...string)

SetDestination sets the logging destination (não aplicável para ZapLogger).

func (*ZapLogger) SetLevel added in v1.0.1

func (z *ZapLogger) SetLevel(level contracts.LogLevel)

SetLevel sets the logging level

func (*ZapLogger) Warn added in v1.0.1

func (z *ZapLogger) Warn(msg string, fields ...contracts.Field)

Warn logs a message at the WARN level

Jump to

Keyboard shortcuts

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