
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
A simple logger package that provides levels, a number of output formats, and named sub-logs. Output formats include key/value, JSON, null and AMQP/RabbitMQ
Install using go get src.userspace.com.au/felix/logger.
Documentation is available at http://godoc.org/src.userspace.com.au/felix/logger
There is a package level logger that is set to level 'WARN'.
log := logger.New(logger.Name("app"), logger.Level(logger.DEBUG))
log.Error("unable to do anything")
... [info] app: unable to do anything
log.Warn("invalid something", "id", 344, "error", "generally broken")
... [warn] app: invalid something id=344 error="generally broken"
sublog := log.Named("database")
sublog.Info("connection initialised")
... [info] app.database: connection initialised
For major sub-systems there is no need to repeat values for each log call:
reqID := "555"
msgLog := sublog.Field("request", reqID)
msgLog.Error("failed to process message")
... [info] app.database: failed to process message request=555
There is also a Log command with no defined level. These messages are always printed:
log.Log("metrics or whatnot", "something", large)
... metrics or whatnot something="12345678"
BenchmarkCoreLogger-12 5000000 288 ns/op
BenchmarkLocal-12 2000000 654 ns/op
BenchmarkLogrus-12 1000000 1738 ns/op
BenchmarkFieldsLocal-12 1000000 1024 ns/op
BenchmarkFieldsLogrus-12 1000000 2061 ns/op
FAQs
Unknown package
Did you know?

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.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.