Documentation ¶
Index ¶
- func NewZapLogger() contracts.Logger
- type ZapLogger
- func (z *ZapLogger) Debug(msg string, fields ...contracts.Field)
- func (z *ZapLogger) Error(msg string, fields ...contracts.Field)
- func (z *ZapLogger) Fatal(msg string, fields ...contracts.Field)
- func (z *ZapLogger) Field() contracts.Field
- func (z *ZapLogger) Info(msg string, fields ...contracts.Field)
- func (z *ZapLogger) SetDestination(dest contracts.LogDestination, filePath ...string)
- func (z *ZapLogger) SetLevel(level contracts.LogLevel)
- func (z *ZapLogger) Warn(msg string, fields ...contracts.Field)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewZapLogger ¶ added in v1.0.1
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) Fatal ¶ added in v1.0.1
Fatal logs a message at the FATAL level and terminates the application
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).
Click to show internal directories.
Click to hide internal directories.