logger

package
v0.0.0-...-6aec01b Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package logger configures logging facility.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*zerolog.Logger
}

Logger represents logger entity.

func FromContext

func FromContext(ctx context.Context) Logger

FromContext extracts logger from the provided context or creates new one.

func New

func New(level string) (*Logger, error)

New creates new logger entity.

Jump to

Keyboard shortcuts

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