logging

package
v0.0.0-...-17edc22 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(output string, l string)

Configure sets up logging

func For

func For(name string) *logrus.Entry

For sets up logging defaults

func StandardLog

func StandardLog(name string) *stdlog.Logger

StandardLog returns a log.Logger wrapper

Types

type Config

type Config struct {
	Level  string `toml:"level" json:"level"`
	Output string `toml:"output" json:"output"`
}

Config log config

type StandardLogWrite

type StandardLogWrite struct {
	// contains filtered or unexported fields
}

StandardLogWrite implements StandardLogWriterInterface

func (StandardLogWrite) Write

func (s StandardLogWrite) Write(p []byte) (n int, err error)

Write is the write handler for StandardLog

type StandardLogWriterInterface

type StandardLogWriterInterface interface {
	Write(p []byte) (n int, err error)
}

StandardLogWriterInterface is an interface to wrap log.Logger

Jump to

Keyboard shortcuts

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