plog

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 8 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 clients.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 clients.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