logutil

package
v0.0.0-...-64decf6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ConstFieldJobKey is used to recognize jobs of the same job type
	ConstFieldJobKey = "job_id"
	// ConstFieldWorkerKey is used to recognize workers of the same job
	ConstFieldWorkerKey = "worker_id"
)

Variables

This section is empty.

Functions

func WithMasterID

func WithMasterID(logger *zap.Logger, masterID frameModel.MasterID) *zap.Logger

WithMasterID attaches master id to logger

func WithProjectInfo

func WithProjectInfo(logger *zap.Logger, project tenant.ProjectInfo) *zap.Logger

WithProjectInfo attaches project info to logger

func WithWorkerID

func WithWorkerID(logger *zap.Logger, workerID frameModel.WorkerID) *zap.Logger

WithWorkerID attaches worker id to logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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