logging

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const DateTimeFormat = "2006-01-02 15:04:05"

Default datetime format

Variables

This section is empty.

Functions

func ConfigureDefaultLogger

func ConfigureDefaultLogger(level string, prettyPrint bool, output ...io.Writer)

Set default options for Zerolog with log level and pretty print If pretty print is false, it will write to Standard Output

func New

func New(level string, prettyPrint bool) zerolog.Logger

Returns an instance of zerolog.Logger with configured log level and pretty print flag If pretty print is false, it will write to Standard Output

Types

This section is empty.

Jump to

Keyboard shortcuts

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