log

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package log provides support for logging to stdout and stderr.

Log entries will be logged 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 SetDebug added in v0.2.0

func SetDebug()

SetDebug sets debug mode.

TODO (bacongobbler): remove entirely once v0.9.0 lands

func SetLevel added in v0.9.0

func SetLevel(level string)

func SetQuiet added in v0.1.2

func SetQuiet()

SetQuiet sets quiet mode.

TODO (bacongobbler): remove entirely once v0.9.0 lands

func SetTag

func SetTag(t string)

SetTag sets the tag.

func SetVerbose added in v0.2.0

func SetVerbose()

SetVerbose sets verbose mode.

TODO (bacongobbler): remove entirely once v0.9.0 lands

func Warning

func Warning(msg string)

Warning logs a message with severity WARNING.

Types

type ConfdFormatter added in v0.9.0

type ConfdFormatter struct {
}

func (*ConfdFormatter) Format added in v0.9.0

func (c *ConfdFormatter) Format(entry *log.Entry) ([]byte, error)

Jump to

Keyboard shortcuts

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