dlogger

package
v1.999.0-test Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package dlogger exposes a simple zap logger, with log levels

Index

Constants

View Source
const (
	// LogLevelInfo sets the log level to info
	LogLevelInfo = "info"

	// LogLevelDebug sets the log level to debug
	LogLevelDebug = "debug"

	// LogLevelNone sets logger to no logging
	LogLevelNone = "none"
)

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(logLevel string) (*zap.Logger, error)

GetLogger returns a zap logger with the specified level

func MustGetLogger

func MustGetLogger(logLevel string) *zap.Logger

MustGetLogger returns a zap logger with the specified level or panics

Types

This section is empty.

Jump to

Keyboard shortcuts

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