Documentation
¶
Index ¶
- func Audit(user string, args ...interface{})
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func GetLogger() *logging.Logger
- func GetLogs(c int, level string) []string
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func InitLogger(level logging.Level)
- func Warning(args ...interface{})
- func Warningf(format string, args ...interface{})
- type LogEntry
- type LogQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Audit ¶
func Audit(user string, args ...interface{})
Audit records an operator action with an explicit actor. Configuration changes are also persisted in the changes table; this is intended for actions such as restarts and imports that do not create a change row.
func InitLogger ¶
Types ¶
type LogEntry ¶
type LogEntry struct {
Timestamp int64 `json:"timestamp"`
Time string `json:"time"`
Level string `json:"level"`
Message string `json:"message"`
User string `json:"user,omitempty"`
Source string `json:"source"`
}
LogEntry is the structured representation used by the mobile API. The original string API remains available for backwards compatibility.
Click to show internal directories.
Click to hide internal directories.