logging

package
v0.0.0-...-99d7e37 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package logging configures and initializes global application logging.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustInit

func MustInit(config LogConfig)

MustInit initializes the logging system and panics if that fails.

Types

type LogConfig

type LogConfig struct {
	LogPretty bool   `arg:"--log-pretty,env:LOG_PRETTY" default:"false" help:"log pretty"`
	LogLevel  string `arg:"--log-level,env:LOG_LEVEL" default:"info" help:"log level" placeholder:"LEVEL"`
}

LogConfig is the logging configuration. It contains struct tags compatible with github.com/alexflint/go-arg.

Jump to

Keyboard shortcuts

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