teelog

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package teelog implements a wrapper sending log messages to a parent logger as well as a file with newline-delimited JSON fragments (NDJSON).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Parent *zap.Logger

	// Path to log file.
	Path string
	// contains filtered or unexported fields
}

func (*File) Wrap

func (f *File) Wrap(fn func(*zap.Logger) error) (err error)

Jump to

Keyboard shortcuts

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