reported_at

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

This adds a field to log reports showing where the logger was called from

Index

Constants

This section is empty.

Variables

View Source
var RecommendedConfig = Config{
	IgnoreStackFrames: regexp.MustCompile("myhelix/contextlogger"),
}

Functions

func LogProvider

func LogProvider(nextProvider providers.LogProvider, config Config) providers.LogProvider

Types

type Config

type Config struct {
	// Ignore these stack frames for purposes of reportedAt
	IgnoreStackFrames *regexp.Regexp
}

Jump to

Keyboard shortcuts

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