logx

package
v3.17.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package logx contains logging extensions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// Emoji is OPTIONAL and indicates whether to enable emojis.
	Emoji bool

	// Now is the MANDATORY function to compute the current time.
	Now func() time.Time

	// StartTime is MANDATORY and indicates when we started logging.
	StartTime time.Time

	// Writer is MANDATORY and is the underlying writer.
	io.Writer
}

Handler implements github.com/apex/log.Handler.

func NewHandlerWithDefaultSettings

func NewHandlerWithDefaultSettings() *Handler

NewHandlerWithDefaultSettings creates a new Handler with default settings.

func (*Handler) HandleLog

func (h *Handler) HandleLog(e *log.Entry) (err error)

HandleLog implements log.Handler

Jump to

Keyboard shortcuts

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