logging

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 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