Documentation ¶
Index ¶
- func Debug(name string, description string)
- func Error(name string, description string)
- func Fatal(name string, description string)
- func FlushAllLogs() error
- func FlushOldLogs() error
- func Info(name string, description string)
- func InitLogger(logger *logrus.Logger)
- func Trace(name string, description string)
- func Warn(name string, description string)
- type LogEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlushAllLogs ¶ added in v0.0.28
func FlushAllLogs() error
func FlushOldLogs ¶ added in v0.0.28
func FlushOldLogs() error
func InitLogger ¶
Types ¶
type LogEvent ¶ added in v0.0.56
type LogEvent struct { Id uint `json:"id"` Name string `json:"name"` Description string `json:"description"` Level database.LogLevel `json:"level"` Time uint64 `json:"time"` // Time in unixMillis }
Alternate struct which uses unix-millis as the time instead of the time struct
func GetAllLogsUnixMillis ¶ added in v0.0.56
Returns all logs from the database but uses unix-millis as the time format
Click to show internal directories.
Click to hide internal directories.