Documentation
¶
Overview ¶
Package matrus provides a matrix.org hook for logrus logging
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MHook ¶
type MHook struct {
AcceptedLevels []logrus.Level
Client *gomatrix.Client
LoggingRoomID string
// contains filtered or unexported fields
}
MHook is a matrus Hook for logging messages to the specified matrix.org room MHook implements logrus.Hook interface
func New ¶
New instance of matrus logger hook
- "cli" - Gomatrix client instance
- "loggingRoomID" - The matrix.org roomID to send logging events to
- "level" - Events at this logging level or higher will be dispatched
- "bp" - The interval in seconds at which batches of logging events will be dispatched to matrix.org (if < 1 the batch dispatch period is set to the default of 15s)
Click to show internal directories.
Click to hide internal directories.