logger

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(key string, value bool) zap.Field

Bool creates a bool field

func Close

func Close()

Close flushes any buffered log entries

func Debug

func Debug(msg string, fields ...zap.Field)

Debug logs a debug message

func Err

func Err(err error) zap.Field

Err creates an error field

func Error

func Error(msg string, fields ...zap.Field)

Error logs an error message

func Fatal

func Fatal(msg string, fields ...zap.Field)

Fatal logs a fatal message and exits

func Info

func Info(msg string, fields ...zap.Field)

Info logs an info message

func Init

func Init(debugEnabled bool, logFilePath string) error

Init initializes the logger

func String

func String(key string, value string) zap.Field

String creates a string field (safe for user input)

func Warn

func Warn(msg string, fields ...zap.Field)

Warn logs a warning message

Types

This section is empty.

Jump to

Keyboard shortcuts

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