logutils

package
v0.12.7-rc Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const TIME_FORMAT = "2006-01-02 15:04:05"

Variables

This section is empty.

Functions

func NewStackTraceLogger

func NewStackTraceLogger(name string) *logrus.Logger

func SetGlobalLogger

func SetGlobalLogger(logger *logrus.Logger)

Types

type CLIFormatter

type CLIFormatter struct{}

func (*CLIFormatter) Format

func (c *CLIFormatter) Format(entry *logrus.Entry) ([]byte, error)

type SilentLogger

type SilentLogger struct{}

func (SilentLogger) Print

func (SilentLogger) Print(v ...interface{})

func (SilentLogger) Printf

func (SilentLogger) Printf(format string, v ...interface{})

type StackTraceFormatter

type StackTraceFormatter struct {
	*StandardFormatter
}

func (*StackTraceFormatter) Format

func (this *StackTraceFormatter) Format(entry *logrus.Entry) ([]byte, error)

type StandardFormatter

type StandardFormatter struct {
	Name string
}

func (*StandardFormatter) Format

func (this *StandardFormatter) Format(entry *logrus.Entry) ([]byte, error)

type StandardLogger added in v0.10.4

type StandardLogger struct {
	*logrus.Logger
}

func NewStandardLogger

func NewStandardLogger(name string) *StandardLogger

func (*StandardLogger) Log added in v0.10.4

func (s *StandardLogger) Log(tokens ...interface{})

func (*StandardLogger) Logf added in v0.10.4

func (s *StandardLogger) Logf(format string, tokens ...interface{})

Jump to

Keyboard shortcuts

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