Skip to content

zikaeroh/ctxlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ctxlog

A context-based wrapper for the zap logger.

import (
    "context"

    "github.com/zikaeroh/ctxlog"
    "go.uber.org/zap"
)

func doSomething(ctx context.Context) {
    ctxlog.Debug(ctx, "something happened", zap.Int("cool", 1234))
    // ...
}

About

A context-based wrapper for the zap logger

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages