logging

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(format LogFormat) *logrus.Logger

NewLogger configures the global logrus logger and returns it This ensures all logrus usage in the process (including external dependencies) uses the same format

Types

type LogFormat

type LogFormat string

LogFormat represents the logging format type

const (
	FormatText LogFormat = "text"
	FormatJSON LogFormat = "json"
)

func (*LogFormat) UnmarshalText

func (f *LogFormat) UnmarshalText(text []byte) error

UnmarshalText implements encoding.TextUnmarshaler for type-safe config parsing

Jump to

Keyboard shortcuts

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