logging

package
v1.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 5 Imported by: 2

Documentation

Overview

Package logging provides a logger and related methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() (*slog.Logger, error)

GetLogger retrieves an instance of an application logger. The log level can be configured via the REVIVE_LOG_LEVEL environment variable. If REVIVE_LOG_LEVEL is unset or empty, logging is disabled. If it is set to an invalid value, the log level defaults to WARN.

func InitForTesting added in v1.15.0

func InitForTesting(tb testing.TB, out io.Writer)

InitForTesting initializes the logger singleton cache for testing purposes. This function should only be called in tests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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