Help us shape the future of Go! Take the 2026 Go Developer Survey

logging

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: BSD-3-Clause Imports: 0 Imported by: 88

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