logger

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultLogDir added in v0.2.0

func DefaultLogDir(appName string) string

DefaultLogDir function returns default log directory ($XDG_CACHE_HOME/appName/)

func LevelFrom

func LevelFrom(s string) zerolog.Level

func LevelList

func LevelList() []string

func New

func New(lvl zerolog.Level, dir string) (*zerolog.Logger, error)

New function returns new zerolog.Logger instance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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