logger

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: MPL-2.0 Imports: 2 Imported by: 29

Documentation

Overview

Package logger provides a global logger interface for logging from plugins.

This package is a wrapper for hclog, and it initializes the global logger on import. You can freely write logs from anywhere via the public API according to the log level. The log by hclog is interpreted as a structured log by go-plugin, and the log level can be handled correctly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, args ...interface{})

Debug emits a message at the DEBUG level

func Error

func Error(msg string, args ...interface{})

Error emits a message at the ERROR level

func Info

func Info(msg string, args ...interface{})

Info emits a message at the INFO level

func Logger

func Logger() hclog.Logger

Logger returns hcl.Logger

func Trace

func Trace(msg string, args ...interface{})

Trace emits a message at the TRACE level

func Warn

func Warn(msg string, args ...interface{})

Warn emits a message at the WARN level

Types

This section is empty.

Jump to

Keyboard shortcuts

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