Documentation
¶
Overview ¶
Package logs provides interface encapsulation for real-time log display and capture.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logs ¶
type Logs interface {
// SetOutput sets the terminal for real-time log display.
SetOutput(show io.Writer) Logs
// PauseOutput pauses log output.
PauseOutput()
// GoOn resumes from pause and continues log output.
GoOn()
// EnableStealOne enables or disables log capture copy mode.
EnableStealOne(bool)
// StealOne captures log copies in order, returning one at a time; normal indicates whether the logger is closed.
StealOne() (level int, msg string, normal bool)
// Close shuts down log output normally.
Close()
// Status returns the running status, e.g. 0,"RUN".
Status() (int, string)
DelLogger(adapterName string) error
SetLogger(adapterName string, config map[string]interface{}) error
// The following methods output logs and, in client/server mode, also send messages over the socket.
Debug(format string, v ...interface{})
Informational(format string, v ...interface{})
App(format string, v ...interface{})
Notice(format string, v ...interface{})
Warning(format string, v ...interface{})
Error(format string, v ...interface{})
Critical(format string, v ...interface{})
Alert(format string, v ...interface{})
Emergency(format string, v ...interface{})
}
Logs defines the logging interface for real-time log display and capture.
Click to show internal directories.
Click to hide internal directories.