msg

package
v0.0.0-...-3869400 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Distributed under the MIT license.  See the LICENSE file.
* Copyright (c) 2014--2016 Thomas Fogal

A simple package to give channel-based logging to std(err|out). A "channel" in this case isn't a go channel, but rather a named conduit for logging. Channels can be enabled or disabled individually. It is expected that users create package-level internal variables and leave them in there. Disabling or enabling a channel is then done at run time, using the 'DEBUG' environment variable.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel interface {
	Error(format string, a ...interface{})
	Warn(format string, a ...interface{})
	Trace(format string, a ...interface{})
	Printf(format string, a ...interface{})
}

func StdChan

func StdChan(name string) Channel

Jump to

Keyboard shortcuts

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