logger

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config) *zap.Logger

New creates a zap logger for console and also setup an output for syslog.

Types

type Config

type Config struct {
	Level  string `koanf:"level"`
	Syslog `koanf:"syslog"`
}

type Syslog

type Syslog struct {
	Enabled bool   `koanf:"enabled"`
	Network string `koanf:"network"`
	Address string `koanf:"address"`
	Tag     string `koanf:"tag"`
}

Jump to

Keyboard shortcuts

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