zalgolog

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 8 Imported by: 0

README

zalğ͔ol̻o̶g͌

Zalgo handler for apex/log

GoDoc

Heavily based on aybabtme/logzalgo

Rewrites the message of an entry with zalğ͔o-ified text, and passes it to the standard text handler.

Documentation

Overview

Package zalgolog implements handler for apex/log that rewrites the message of an entry with zalğ͔o-ified text.

Index

Constants

This section is empty.

Variables

View Source
var Default = New(os.Stderr, nil)

Default allows for a simple way to get a working zalgolog Handler.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler struct for implementing the log.Handler interface.

func New

func New(w io.Writer, h log.Handler) *Handler

New returns a zalgolog Handler ready for writing. Default passthrough is to the standard text handler.

func (*Handler) HandleLog

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

HandleLog implements the Handler interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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