log

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Critf

func Critf(message string, args ...any)

Write a CRIT message to the log

func Debugf

func Debugf(message string, args ...any)

Write a DEBUG message to the log

func Errf

func Errf(message string, args ...any)

Write an ERR message to the log

func ErrorLogger

func ErrorLogger() *log.Logger

func Infof

func Infof(message string, args ...any)

Write an INFO message to the log

func InitLogging

func InitLogging(level syslog.Priority) error

Initialize the logging system. Redirect messages to syslog if run by systemd.

func Noticef

func Noticef(message string, args ...any)

Write a NOTICE message to the log

func OvsdbLogger

func OvsdbLogger() *logr.Logger

func ParseLogLevel

func ParseLogLevel(s string) (syslog.Priority, error)

Parse a log level from a string and return an integer value

func PrometheusLogger

func PrometheusLogger() promhttp.Logger

func Warningf

func Warningf(message string, args ...any)

Write a WARNING 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