logger

package
v0.0.0-...-f9f7c22 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Log is global logger
	Log *zap.Logger

	// ZLevel is global logger
	ZLevel *zap.AtomicLevel

	// MSName from config
	MSName string
)

Functions

func AppLogger

func AppLogger(level string, description string, time int64, items ...string)

AppLogger func to be used for application logging

func Init

func Init(lvl string, timeFormat string, msName string) error

Init initializes log by input parameters lvl - global log level: Debug(-1), Info(0), Warn(1), Error(2), DPanic(3), Panic(4), Fatal(5) timeFormat - custom time format for logger of empty string to use default

Types

This section is empty.

Jump to

Keyboard shortcuts

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