logging

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package logging handles application-level error and debug logging to the local filesystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(opts Options) (*slog.Logger, string, error)

Init initializes the application logger based on the provided options. It returns the logger instance, the absolute path to the active log file, and any error encountered.

Types

type Options

type Options struct {
	Now     func() time.Time
	HomeDir string
	Debug   bool
}

Options configures the logging system initialization.

Jump to

Keyboard shortcuts

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