logger

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package logger provides logging functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, fields ...zapcore.Field)

Debug outputs a message at debug level

func DevLogger

func DevLogger(file string) (*zap.Logger, error)

DevLogger creates new logger debug level with 2 outputs: file, stdout

func Error

func Error(msg string, fields ...zapcore.Field)

Error outputs a message at error level

func Info

func Info(msg string, fields ...zapcore.Field)

Info outputs a message at information level

func ProdLogger

func ProdLogger(file string) (*zap.Logger, error)

ProdLogger creates performance critical logger

func SetLogger

func SetLogger()

SetLogger creates new development logger

func Sync

func Sync() error

Sync flushes any buffered log entries

Types

This section is empty.

Jump to

Keyboard shortcuts

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