zeroconf

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package zeroconf helps configure the zerolog package using a json configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	Level   LogLevel `json:"level"`
	Console bool     `json:"console"`
}

Log defines the configurable paremeters supported.

func (*Log) Init

func (l *Log) Init(role string)

Init is used to prepare the standard global logger

type LogLevel

type LogLevel string

LogLevel defines what levels of log we support

const (
	LogLevelPanic LogLevel = "panic"
	LogLevelError LogLevel = "error"
	LogLevelWarn  LogLevel = "warn"
	LogLevelInfo  LogLevel = "info"
	LogLevelDebug LogLevel = "debug"
)

Pre-defined base log levels

Jump to

Keyboard shortcuts

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