package
0.0.0-20240214190408-36c2227dee3d
Repository: https://github.com/khulnasoft-lab/dnserver.git
Documentation: pkg.go.dev

# Functions

Debug is equivalent to log.Print(), but prefixed with "[DEBUG] ".
Debugf is equivalent to log.Printf(), but prefixed with "[DEBUG] ".
DeregisterListener deregister a listener object.
Discard sets the log output to /dev/null.
Error is equivalent to log.Print, but prefixed with "[ERROR] ".
Errorf is equivalent to log.Printf, but prefixed with "[ERROR] ".
Fatal is equivalent to log.Print, but prefixed with "[FATAL] ", and calling os.Exit(1).
Fatalf is equivalent to log.Printf, but prefixed with "[FATAL] ", and calling os.Exit(1).
Info is equivalent to log.Print, but prefixed with "[INFO] ".
Infof is equivalent to log.Printf, but prefixed with "[INFO] ".
NewWithPlugin returns a logger that includes "plugin/name: " in the log message.
RegisterListener register a listener object.
Warning is equivalent to log.Print, but prefixed with "[WARNING] ".
Warningf is equivalent to log.Printf, but prefixed with "[WARNING] ".

# Variables

D controls whether we should output debug logs.

# Structs

P is a logger that includes the plugin doing the logging.

# Interfaces

Listener listens for all log prints of plugin loggers aka loggers with plugin name.