Help us shape the future of Go! Take the 2026 Go Developer Survey

logger

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package logger configures structured logging (log/slog) and prints the startup banner.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLevel

func ParseLevel(s string) slog.Level

ParseLevel converts a level name; unknown names mean info.

func Setup

func Setup(cfg config.LoggingConfig) (*slog.Logger, io.Closer, error)

Setup builds a logger from the logging configuration and installs it as the slog default. The returned closer releases the log file, if any.

func StartupMessage

func StartupMessage()

StartupMessage prints a stylized startup banner with the application version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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