plog

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package plog (or plumbig log) provides a logging initializer and utility functions for working with a logging library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Combine

func Combine(field ...logrus.Fields) logrus.Fields

func DefaultFields

func DefaultFields(ctx context.Context, step pipeline.Step, opts pipeline.CommonOpts) logrus.Fields

func LogPipelines

func LogPipelines(logger logrus.FieldLogger, pipelines []pipeline.Pipeline)

func LogSteps

func LogSteps(logger logrus.FieldLogger, steps []pipeline.Step)

func New

func New(level logrus.Level) *logrus.Logger

func PipelineFields

func PipelineFields(opts pipeline.CommonOpts) logrus.Fields

func StepFields

func StepFields(step pipeline.Step) logrus.Fields

func TracingFields

func TracingFields(ctx context.Context) logrus.Fields

TracingFields adds fields that are derived from the context.Context. Tracing has handled using context.Context, and if tracing is enabled, then everything happening should be within a tracing span / trace

Types

This section is empty.

Jump to

Keyboard shortcuts

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