logonce

package
Version: v0.0.0-...-fdaaeef Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2016 License: MPL-2.0, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package logonce implements an io.Writer facade that only performs distinct writes. This can be used by log.Loggers as they're guaranteed to make a single Write method call for each message. This is useful for loggers that print useful information about unexpected conditions that aren't fatal in code.

Index

Constants

This section is empty.

Variables

View Source
var Stderr *log.Logger

A default logger similar to the default logger in the log package.

Functions

func Writer

func Writer(w io.Writer) io.Writer

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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