zlog

package
v1.0.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package zlog provides abstraction layer for zerolog logging library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultLogger

func DefaultLogger() *zerolog.Logger

DefaultLogger returns the default logger.

func New

func New(o NewOptions) *zerolog.Logger

New creates new logger by the given options.

func SetDefaultLogger

func SetDefaultLogger(l *zerolog.Logger)

SetDefaultLogger sets the default logger.

Types

type NewOptions

type NewOptions struct {
	Level  string
	Format string
	Output string
}

NewOptions represents the options which can be set when creating a new logger.

Jump to

Keyboard shortcuts

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