xserverchan

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 8 Imported by: 0

README

xserverchan

Dependencies

  • github.com/Aoi-hosizora/ahlib
  • github.com/Aoi-hosizora/go-serverchan
  • github.com/sirupsen/logrus

Documents

Types
  • None
Variables
  • None
Constants
  • None
Functions
  • func WithExtraText(text string) logop.LoggerOption
  • func WithExtraFields(fields map[string]interface{}) logop.LoggerOption
  • func WithExtraFieldsV(fields ...interface{}) logop.LoggerOption
  • func LogToLogrus(logger *logrus.Logger, sckey, title, body string, err error, options ...logop.LoggerOption)
  • func LogToLogger(logger logrus.StdLogger, sckey, title, body string, err error, options ...logop.LoggerOption)
Methods
  • None

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL