logging

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogger added in v0.1.4

func GetLogger(name string, args ...interface{}) hclog.Logger

GetLogger returns an hc logger with the provided name and creates or updates an existing logger using args args[0] = Level args[1] = Output args[2] = JSONFormat

func Logger added in v0.1.4

func Logger() hclog.Logger

Logger returns the active logger for use in statements such as Logger().Info("")

func SetLogWriter added in v0.1.4

func SetLogWriter(name string, logWriter io.Writer)

SetLogWriter sets the log package to use the provided writer If the logWriter was not created using this package, Logger() will return nil until UseLogger is run

func UseLogger added in v0.1.4

func UseLogger(name string, args ...interface{}) hclog.Logger

UseLogger creates or retrieves a logger by name and sets it as the primary logger for the log package

func Writer added in v0.1.4

func Writer() io.Writer

Writer ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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