Skip to content

Commit

Permalink
log: Fixup comments for exported functions
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Augustus <[email protected]>
  • Loading branch information
justaugustus committed Jan 20, 2022
1 parent 8979e12 commit ac1d50f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,17 @@ import (
"go.uber.org/zap/zapcore"
)

// Logger exposes logging capabilities.
// The struct name was chosen to closely mimic other logging facilities within
// to project to make them easier to search/replace.
// Initial implementation was designed to encapsulate calls to `zap`, but
// future iterations will seek to directly expose logging methods.
type Logger struct {
Zap *zap.Logger
}

// NewLogger creates an instance of *zap.Logger.
// Copied from clients/githubrepo/client.go
// Copied from clients/githubrepo/client.go.
func NewLogger(logLevel Level) (*Logger, error) {
zapCfg := zap.NewProductionConfig()
zapLevel := parseLogLevelZap(string(logLevel))
Expand Down

0 comments on commit ac1d50f

Please sign in to comment.