logging

package
v0.0.0-...-ed054be Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2014 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(f string, a ...interface{})

Shim functions so that the package can be used directly

func Error

func Error(f string, a ...interface{})

func Info

func Info(f string, a ...interface{})

func SetLogger

func SetLogger(l Logger)

SetLogger sets the internal goirc Logger to l. If l is nil, a dummy logger that does nothing is installed instead.

func Warn

func Warn(f string, a ...interface{})

Types

type Logger

type Logger interface {
	// Debug logging of raw socket comms to/from server.
	Debug(format string, args ...interface{})
	// Informational logging about client behaviour.
	Info(format string, args ...interface{})
	// Warnings of inconsistent or unexpected data, mostly
	// related to state tracking of IRC nicks/chans.
	Warn(format string, args ...interface{})
	// Errors, mostly to do with network communication.
	Error(format string, args ...interface{})
}

The IRC client will log things using these methods

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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