Named loggers
Use logy.Named when the runtime boundary needs an explicit name.
logy.Named creates a logger with the name you provide. Use it when the runtime
concept is more important than the source package: queues, schedulers,
background workers, integrations, or shared pipelines.
var workerLog = logy.Named("queue.worker")
func RunJob(job Job) {
workerLog.Info("running job {}", job.ID)
}Calling logy.Named with the same name returns the same logger. This makes it
safe to keep named loggers near the code that owns that runtime boundary.
Named loggers are also useful with package-specific configuration because the name becomes a stable target for level and handler rules.
