Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger wraps a standard library logger and adapts it to pkg/log.
type Option ¶ added in v0.4.0
type Option func(*Logger)
func WithCallerDepth ¶ added in v0.4.0
WithCallerDepth sets the call depth of the logger for filename and line logging. Set depth to 0 to disable filename and line logging.
func WithDebugFlag ¶ added in v0.4.0
WithDebugFlag sets debug logging on or off.
func WithLogger ¶ added in v0.4.0
WithLogger sets the Go standard logger to use.
func WithoutTimestamp ¶ added in v0.4.0
func WithoutTimestamp() Option
WithoutTimestamp disables outputting an RFC3339 timestamp.
Click to show internal directories.
Click to hide internal directories.