log

package module
v0.0.0-...-06764e1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2014 License: MIT Imports: 3 Imported by: 0

README

log

Documentation

Overview

Package log provides syslog logging to a local or remote Syslog logger. To specify a remote syslog host, set the "log.sysloghost" key in the Skynet configuration. Specify the port with "log.syslogport". If "log.sysloghost" is not provided, skynet will log to local syslog.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(messages ...interface{})

func Debugf

func Debugf(format string, messages ...interface{})

func Error

func Error(messages ...interface{})

func Errorf

func Errorf(format string, messages ...interface{})

func Fatal

func Fatal(messages ...interface{})

func Fatalf

func Fatalf(format string, messages ...interface{})

func Info

func Info(messages ...interface{})

func Infof

func Infof(format string, messages ...interface{})

func Initialize

func Initialize()

Call Initialize after setting (or not setting) SyslogHost and SyslogPort when they're read from configuration source.

func Panic

func Panic(messages ...interface{})

func Panicf

func Panicf(format string, messages ...interface{})

func Printf

func Printf(level LogLevel, format string, messages ...interface{})

func Println

func Println(level LogLevel, messages ...interface{})

func SetLogLevel

func SetLogLevel(level LogLevel)

func SetSyslogHost

func SetSyslogHost(host string)

func SetSyslogPort

func SetSyslogPort(port int)

func Trace

func Trace(messages ...interface{})

func Tracef

func Tracef(format string, messages ...interface{})

func Warn

func Warn(messages ...interface{})

func Warnf

func Warnf(format string, messages ...interface{})

Types

type LogLevel

type LogLevel int8
const (
	TRACE LogLevel = iota
	DEBUG
	INFO
	WARN
	ERROR
	FATAL
	PANIC
)

func GetLogLevel

func GetLogLevel() LogLevel

func LevelFromString

func LevelFromString(l string) (level LogLevel)

Jump to

Keyboard shortcuts

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