Documentation
¶
Index ¶
- Constants
- func DefaultBackend() *log.Logger
- func GetLogIDKey() string
- func New(std stdr.StdLogger, lc *TracrMap, verbose int, opts stdr.Options) logr.Logger
- func RunForever(ctx context.Context, logger logr.Logger, interval time.Duration, ...)
- func SetLogIDKey(val string)
- func SetupWithEnv(ctx context.Context, backend *log.Logger) (logr.Logger, logr.Logger, error)
- func SetupWithParams(ctx context.Context, backend *log.Logger, params Params) (logr.Logger, logr.Logger)
- type Config
- type EnvVarMissing
- type Params
- type SpanBlob
- type TimeFunc
- type TracrMap
- type UnsupportedSetting
Constants ¶
View Source
const ( LogTracrDirEnvVar string = "LOGTRACR_DUMP_DIR" LogTracrIntervalEnvVar string = "LOGTRACR_DUMP_INTERVAL" LogTracrVerboseEnvVar string = "LOGTRACR_VERBOSE" )
Variables ¶
This section is empty.
Functions ¶
func DefaultBackend ¶
func GetLogIDKey ¶
func GetLogIDKey() string
func RunForever ¶
func SetLogIDKey ¶
func SetLogIDKey(val string)
func SetupWithEnv ¶
Types ¶
type Config ¶
type Config struct { Verbose int `json:"verbose"` DumpInterval time.Duration `json:"dumpInterval"` DumpDirectory string `json:"dumpDirectory"` }
func ConfigFromEnv ¶
type EnvVarMissing ¶
type EnvVarMissing struct {
Name string
}
func (*EnvVarMissing) Error ¶
func (ev *EnvVarMissing) Error() string
type TracrMap ¶
type TracrMap struct {
// contains filtered or unexported fields
}
func NewTracrMap ¶
func (*TracrMap) PopExpired ¶
type UnsupportedSetting ¶
func (*UnsupportedSetting) Error ¶
func (us *UnsupportedSetting) Error() string
Click to show internal directories.
Click to hide internal directories.