example

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base

func Base(writer io.Writer, level logger.Level) *zerolog.Logger

Base creates initial logger instance.

func Common

func Common(l *zerolog.Logger) *zerolog.Logger

Common creates common sublogger.

func ConsoleWriter

func ConsoleWriter() io.Writer

ConsoleWriter creates an example of the writer instance for logging to the console.

func FileWriter

func FileWriter(file *os.File) io.Writer

FileWriter creates an example of the writer instance for logging to the file.

func Storage

func Storage(l *zerolog.Logger) *zerolog.Logger

Storage creates sublogger for storage actions logging.

func Web

func Web(l *zerolog.Logger) *zerolog.Logger

Web creates sublogger for web-server actions logging.

Types

This section is empty.

Jump to

Keyboard shortcuts

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