logging

package
v0.6.0-RC-3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(c *Config) zerolog.Logger

FIXME: add function to load logger config in the config package

Types

type Config

type Config struct {
	Level     string          `yaml:"level"`
	Target    string          `yaml:"target"`
	Format    string          `yaml:"format"`
	Caller    bool            `yaml:"caller"`
	Timestamp TimestampConfig `yaml:"timestamp"`
}

type TimestampConfig

type TimestampConfig struct {
	Enabled bool   `yaml:"enabled"`
	Format  string `yaml:"format"`
}

Jump to

Keyboard shortcuts

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