Socket
Book a DemoInstallSign in
Socket

src.techknowlogick.com/work-zaplogger

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

src.techknowlogick.com/work-zaplogger

Go Modules
Version
v0.0.0-20251120153144-850f1b65092d
Version published
Created
Source

work-zaplogger

Zap Logger interface for github.com/taylorchu/work

Example

import (
	"go.uber.org/zap"
    zaplogger "src.techknowlgick.com/work-zaplogger"
	"github.com/taylorchu/work"
)

logger, _ := zap.NewProduction()

jobOpts := &work.JobOptions{
	MaxExecutionTime: time.Minute,
	IdleWait:         4 * time.Second,
	NumGoroutines:    4,
	HandleMiddleware: []work.HandleMiddleware{
		zaplogger.HandleFuncLoggerZap(logger), // add middleware here
	},
}

Credits/License

This project is a largely based on the existing logrus middleware implementation in work, which is licensed under the MIT license, so this project is also licensed under the MIT license to ensure compliance. A very big thank you to Taylor Chu for their work (no pun intended) on work.

You can see work, and it's documentation here: https://github.com/taylorchu/work

FAQs

Package last updated on 20 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts