xrecovery

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: 4 Imported by: 0

README

xrecovery

Dependencies

  • github.com/Aoi-hosizora/ahlib
  • 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, err interface{}, stack xruntime.TraceStack, options ...logop.LoggerOption)
  • func LogToLogger(logger logrus.StdLogger, err interface{}, stack xruntime.TraceStack, 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, err interface{}, stack xruntime.TraceStack, options ...logop.LoggerOption)

LogToLogger logs a panic message to logrus.StdLogger using given error, nil-able xruntime.TraceStack.

func LogToLogrus

func LogToLogrus(logger *logrus.Logger, err interface{}, stack xruntime.TraceStack, options ...logop.LoggerOption)

LogToLogrus logs a panic message to logrus.Logger from given error, nil-able xruntime.TraceStack.

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