logger

package
v0.0.0-...-92526cb Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package logger provides functions for configuring global logger.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupGlobal

func SetupGlobal(opts *GlobalOpts)

SetupGlobal setups global zap logger.

Types

type GlobalOpts

type GlobalOpts struct {
	LogDebug   bool   // enable debug level logging
	LogDevMode bool   // enable development mode logging: text instead of JSON, DPanic panics instead of logging errors
	LogName    string // global logger name
}

GlobalOpts contains logger options.

Jump to

Keyboard shortcuts

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