log

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package log is a thin logging package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(format string, args ...interface{})

Debugf writes a log entry.

func Errorf

func Errorf(format string, args ...interface{})

Errorf writes a log entry.

func Infof

func Infof(format string, args ...interface{})

Infof writes a log entry.

func Panicf

func Panicf(format string, args ...interface{})

Panicf writes a log entry.

func ReplaceLogger

func ReplaceLogger(logger StdLogger) func()

ReplaceLogger replaces log.global with the passed log.StdLogger, and returns a function to restore the original values.

func Tracef

func Tracef(format string, args ...interface{})

Tracef writes a log entry.

func Warnf

func Warnf(format string, args ...interface{})

Warnf writes a log entry.

Types

type StdLogger

type StdLogger interface {
	Tracef(format string, args ...interface{})
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Warnf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Panicf(format string, args ...interface{})
}

StdLogger interface for Standard Logger.

Jump to

Keyboard shortcuts

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