Documentation ¶
Index ¶
- func LogToLogger(logger logrus.StdLogger, sckey, title, body string, err error, ...)
- func LogToLogrus(logger *logrus.Logger, sckey, title, body string, err error, ...)
- func WithExtraFields(fields map[string]interface{}) logop.LoggerOption
- func WithExtraFieldsV(fields ...interface{}) logop.LoggerOption
- func WithExtraText(text string) logop.LoggerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogToLogger ¶
func LogToLogger(logger logrus.StdLogger, sckey, title, body string, err error, options ...logop.LoggerOption)
LogToLogger logs a send-event message to logrus.StdLogger using given sckey, title and body.
func LogToLogrus ¶
func LogToLogrus(logger *logrus.Logger, sckey, title, body string, err error, options ...logop.LoggerOption)
LogToLogrus logs a send-event message to logrus.Logger using given sckey, title, body and error.
func WithExtraFields ¶
func WithExtraFields(fields map[string]interface{}) logop.LoggerOption
WithExtraFields creates a logger option to log with extra fields.
func WithExtraFieldsV ¶
func WithExtraFieldsV(fields ...interface{}) logop.LoggerOption
WithExtraFieldsV creates a logger option to log with extra fields in vararg.
func WithExtraText ¶
func WithExtraText(text string) logop.LoggerOption
WithExtraText creates a logger option to log with extra text.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.