ulog

package
v0.0.0-...-d2acac8 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: BSD-3-Clause Imports: 1 Imported by: 7

Documentation

Overview

Package ulog exposes logging via a Go interface.

ulog has three implementations of the Logger interface: a Go standard library "log" package Logger and a test Logger that logs via a test's testing.TB.Logf. To use the test logger import "ulog/ulogtest".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Printf(format string, v ...interface{})
}

Logger is a log receptacle.

It puts your information somewhere for safekeeping.

var Log Logger = log.Default()

Log is a Logger that prints to the log package's default logger.

var Null Logger = emptyLogger{}

Null is a logger that prints nothing.

Directories

Path Synopsis
Package ulogtest implement the Logger interface via a test's testing.TB.Logf.
Package ulogtest implement the Logger interface via a test's testing.TB.Logf.

Jump to

Keyboard shortcuts

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