logger

package
v0.0.0-...-0197ef1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

package logger handles structural logging for the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func Init

func Init() *Logger

func Init creates a new zap logger.

func (*Logger) Debug

func (l *Logger) Debug(message string, fields ...zap.Field)

Debug logs message on the error level.

func (*Logger) Error

func (l *Logger) Error(message string, fields ...zap.Field)

Error logs message on the error level.

func (*Logger) Info

func (l *Logger) Info(message string, fields ...zap.Field)

Info logs message on the info level.

func (*Logger) Panic

func (l *Logger) Panic(message string, fields ...zap.Field)

Panic logs message on the error level.

Jump to

Keyboard shortcuts

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