logger

package
v0.0.0-...-31b4c3b Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package logger - package for logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug() *zerolog.Event

Debug starts a new message with debug level. You must call Msg on the returned event in order to send the event.

func Error

func Error() *zerolog.Event

Error starts a new message with error level. You must call Msg on the returned event in order to send the event.

func Fatal

func Fatal() *zerolog.Event

Fatal - starts a new message with fatal level. The os.Exit(1) function is called by the Msg method, which terminates the program immediately You must call Msg on the returned event in order to send the event.

func Info

func Info() *zerolog.Event

Info starts a new message with info level. You must call Msg on the returned event in order to send the event.

func Init

func Init(level string, useFile bool) error

Init - init of logger variable using passed log level, for values: fatal error info debug if value not from list above sets debug log level.

Types

This section is empty.

Jump to

Keyboard shortcuts

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