Skip to content

Commit

Permalink
add guiding comment for wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcarle committed Nov 16, 2022
1 parent b0eeac6 commit 98d08e3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions logging/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,12 @@ func buildZapLogger(name string, config Config) (*zap.Logger, error) {
return newLogger.Named(name), nil
}

/*
The following are wrappers for external packages loggers that are compatible with
our own logger (i.e. Zap based). They offer a way to access the internal logger stores
and apply our configuration. They should implement ApplyConfig.
*/

// goLogger is a wrapper for a go-log logger
// Used by github.com/ipfs/go-ipfs-provider
type goLogger struct {
Expand Down

0 comments on commit 98d08e3

Please sign in to comment.