formatter

package
v0.0.0-...-406b1e7 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONLogMessage

func JSONLogMessage(logMessage []byte, prevTimestamp string, color bool) (retOutput *buffer.Buffer, retTimestamp string, retError error)

JSONLogMessage formats a single JSON-formatted log message

prevTimestamp is passed to selectively deemphasize the parts of the current timestamp that haven't changed since the last log message

func Stream

func Stream(reader io.Reader, writer io.Writer, color bool) error

Stream takes logs from reader, transforms them to console format and writes to writer

Types

This section is empty.

Jump to

Keyboard shortcuts

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