loggerx

package
v1.76.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package loggerx provides logging functions to the rest of the syspolicy packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(format string, args ...any)

Errorf formats and writes an error message to the log.

func SetDebugLoggingEnabled added in v1.76.0

func SetDebugLoggingEnabled(v bool)

SetDebugLoggingEnabled controls whether spammy debug logging is enabled.

func SetForTest

func SetForTest(tb internal.TB, printf, verbosef logger.Logf)

SetForTest sets the specified printf and verbosef functions for the duration of tb and its subtests.

func Verbosef

func Verbosef(format string, args ...any)

Verbosef formats and writes an optional, verbose message to the log.

Types

This section is empty.

Jump to

Keyboard shortcuts

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