logging

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package logging provides structured logging using Go's standard library log/slog. It outputs logs in JSON format to stdout and integrates with Uber's Fx dependency injection framework.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(config LoggerConfig, w io.Writer) *slog.Logger

NewLogger creates a new slog.Logger with JSON handler and the specified output. The level is parsed from the config; defaults to INFO if invalid or empty.

Types

type LoggerConfig

type LoggerConfig struct {
	Level string
}

LoggerConfig holds configuration for the logger.

Jump to

Keyboard shortcuts

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