log

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ComponentLogPrefix = "component"

ComponentLogPrefix is used by the logger to prefix log messages with the component name.

Variables

This section is empty.

Functions

func Debug

func Debug(componentName string, format string, v ...interface{})

Debug logs a message using the applications logger. The log level of the logged message is debug. The function will append a component name to the message that can be used to distinguish log messages between modules.

func Err

func Err(componentName string, err error, format string, v ...interface{})

Err logs a message using the applications logger. The log level of the logged message is error. The function will append a component name to the message that can be used to distinguish log messages between modules.

func Info

func Info(componentName string, format string, v ...interface{})

Info logs a message using the applications logger. The log level of the logged message is info. The function will append a component name to the message that can be used to distinguish log messages between modules.

func Warn

func Warn(componentName string, format string, v ...interface{})

Warn logs a message using the applications logger. The log level of the logged message is warning. The function will append a component name to the message that can be used to distinguish log messages between modules.

Types

This section is empty.

Jump to

Keyboard shortcuts

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