MCPcopy Create free account
hub / github.com/bepass-org/proxy / Logger

Struct Logger

example/customLogger/logger.go:10–13  ·  view source on GitHub ↗

Logger is a logger that implements statute.Logger to be able to be used in mixed.WithLogger

Source from the content-addressed store, hash-verified

8
9// Logger is a logger that implements statute.Logger to be able to be used in mixed.WithLogger
10type Logger struct {
11 debugLog *log.Logger
12 errorLog *log.Logger
13}
14
15// NewLogger creates the log file and configures logger to write to both file & Standard streams(Stdout, Stderr)
16func NewLogger(filename string) (*Logger, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected