log

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Must

func Must(logger *zap.Logger, err error) *zap.Logger

Must panics if there is a non-nil error, otherwise it returns a non-nil zap logger. This function is intended for use with the NewLogger function when the application must panic if a zap logger could not be created.

func NewLogger

func NewLogger(ws zapcore.WriteSyncer, debug bool) *zap.Logger

NewLogger creates a new zap logger instance for use in the MCL command-line application.

Types

This section is empty.

Jump to

Keyboard shortcuts

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