Documentation ¶
Overview ¶
The log package logs to an io.Writer using the same log format that CUPS uses.
Index ¶
- func Debug(args ...interface{})
- func DebugJob(jobID string, args ...interface{})
- func DebugJobf(jobID, format string, args ...interface{})
- func DebugPrinter(printerID string, args ...interface{})
- func DebugPrinterf(printerID, format string, args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func ErrorJob(jobID string, args ...interface{})
- func ErrorJobf(jobID, format string, args ...interface{})
- func ErrorPrinter(printerID string, args ...interface{})
- func ErrorPrinterf(printerID, format string, args ...interface{})
- func Errorf(format string, args ...interface{})
- func Fatal(args ...interface{})
- func FatalJob(jobID string, args ...interface{})
- func FatalJobf(jobID, format string, args ...interface{})
- func FatalPrinter(printerID string, args ...interface{})
- func FatalPrinterf(printerID, format string, args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Info(args ...interface{})
- func InfoJob(jobID string, args ...interface{})
- func InfoJobf(jobID, format string, args ...interface{})
- func InfoPrinter(printerID string, args ...interface{})
- func InfoPrinterf(printerID, format string, args ...interface{})
- func Infof(format string, args ...interface{})
- func SetJournalEnabled(b bool)
- func SetLevel(l LogLevel)
- func SetWriter(w io.Writer)
- func Warning(args ...interface{})
- func WarningJob(jobID string, args ...interface{})
- func WarningJobf(jobID, format string, args ...interface{})
- func WarningPrinter(printerID string, args ...interface{})
- func WarningPrinterf(printerID, format string, args ...interface{})
- func Warningf(format string, args ...interface{})
- type LogLevel
- type LogRoller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugPrinter ¶
func DebugPrinter(printerID string, args ...interface{})
func DebugPrinterf ¶
func DebugPrinterf(printerID, format string, args ...interface{})
func ErrorPrinter ¶
func ErrorPrinter(printerID string, args ...interface{})
func ErrorPrinterf ¶
func ErrorPrinterf(printerID, format string, args ...interface{})
func FatalPrinter ¶
func FatalPrinter(printerID string, args ...interface{})
func FatalPrinterf ¶
func FatalPrinterf(printerID, format string, args ...interface{})
func InfoPrinter ¶
func InfoPrinter(printerID string, args ...interface{})
func InfoPrinterf ¶
func InfoPrinterf(printerID, format string, args ...interface{})
func SetJournalEnabled ¶
func SetJournalEnabled(b bool)
SetJournalEnabled enables or disables writing to the systemd journal. Default is false.
func SetLevel ¶
func SetLevel(l LogLevel)
SetLevel sets the minimum severity level to log. Default is INFO.
func WarningJob ¶
func WarningJob(jobID string, args ...interface{})
func WarningJobf ¶
func WarningJobf(jobID, format string, args ...interface{})
func WarningPrinter ¶
func WarningPrinter(printerID string, args ...interface{})
func WarningPrinterf ¶
func WarningPrinterf(printerID, format string, args ...interface{})
Types ¶
type LogLevel ¶
type LogLevel uint8
LogLevel represents a subset of the severity levels named by CUPS.
func LevelFromString ¶
Click to show internal directories.
Click to hide internal directories.