logger

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package logger contains the logger for the storctl tool. It includes the functions to initialize the logger and get the global logger instance. The logger is used to log messages to the console.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get added in v0.1.2

func Get() *slog.Logger

Get returns the global logger instance

func Initialize added in v0.1.2

func Initialize(level slog.Level)

Initialize sets up the global logger with the specified level

func ParseLevel

func ParseLevel(level string) slog.Level

Types

This section is empty.

Jump to

Keyboard shortcuts

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