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