log

package
v0.0.0-...-b4f4f56 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package log implements a basic level based logger

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(lvl slog.Level, dir string) (*os.File, error)

Init initializes the logger by setting a max level 'level' and a directory 'directory' where the log should be stored internally, it uses slog, so any package just imports slog This can be done as this function sets the logger as the default logger in slog It returns the log file and the error This log file should be closed at the end

Types

This section is empty.

Jump to

Keyboard shortcuts

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