Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(l logger.Logger, dmer poster.DMer, logLevel logger.LogLevel, includeContext bool, userIDs ...string) logger.Logger
New promotes the provided logger into a admin cc logger, sending direct messages to all the admin ids provided through the dmer provided, about all events below the logLevel. If logVerbose is set, it will also send the context.
- l Logger: A logger to promote.
- dmer DMer: A DMer to send the messages to the admins.
- logLevel: The highest type of message to be stored in telemetry.
- includeContext: Whether the log context should be messaged to the admins.
- userIDs: The user IDs of the admins.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.