logutil

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package logutil implements various log utilities.

Index

Constants

This section is empty.

Variables

View Source
var DefaultLogLevel = "info"

DefaultLogLevel is the default log level.

Functions

func ConvertToZapLevel

func ConvertToZapLevel(lvl string) zapcore.Level

ConvertToZapLevel converts log level string to zapcore.Level.

func GetDefaultZapLogger

func GetDefaultZapLogger() (*zap.Logger, error)

GetDefaultZapLogger returns a new default logger.

func GetDefaultZapLoggerConfig

func GetDefaultZapLoggerConfig() zap.Config

GetDefaultZapLoggerConfig returns a new default zap logger configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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