log

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2013 License: MIT Imports: 3 Imported by: 1,059

Documentation

Overview

Package log provides support for logging to stdout and stderr.

Log entires will be log in the following format:

timestamp hostname tag[pid]: SEVERITY Message

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

Debug logs a message with severity DEBUG.

func Error

func Error(msg string)

Error logs a message with severity ERROR.

func Fatal

func Fatal(msg string)

Fatal logs a message with severity ERROR followed by a call to os.Exit().

func Info

func Info(msg string)

Info logs a message with severity INFO.

func Notice

func Notice(msg string)

Notice logs a message with severity NOTICE.

func SetQuiet added in v0.1.2

func SetQuiet(q bool)

SetQuiet sets quite mode.

func SetTag

func SetTag(t string)

SetTag sets the tag.

func Warning

func Warning(msg string)

Warning logs a message with severity WARNING.

Types

This section is empty.

Jump to

Keyboard shortcuts

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