log

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: BSD-3-Clause-LBNL Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeAppLogger

func InitializeAppLogger()

InitializeAppLogger initialize logger, invoked from main

Types

type StdErrLoggingHook

type StdErrLoggingHook struct {
	Formatter log.Formatter
}

StdErrLoggingHook writes all log messages to os.Stderr

func (*StdErrLoggingHook) Fire

func (hook *StdErrLoggingHook) Fire(entry *log.Entry) error

func (*StdErrLoggingHook) Levels

func (hook *StdErrLoggingHook) Levels() []log.Level

type StdOutLoggingHook

type StdOutLoggingHook struct {
	Formatter log.Formatter
}

StdErrLoggingHook writes all log messages to os.Stderr

func (*StdOutLoggingHook) Fire

func (hook *StdOutLoggingHook) Fire(entry *log.Entry) error

func (*StdOutLoggingHook) Levels

func (hook *StdOutLoggingHook) Levels() []log.Level

Jump to

Keyboard shortcuts

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