Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogger ¶
func NewLogger(l, logpath string) *zap.SugaredLogger
NewLogger creates a new default logger it will need to be closed with ``` defer logger.Desugar().Sync() ``` to make sure all has been piped out before terminating
Types ¶
type LogEntry ¶
type LogEntry struct { *LogFormatter // contains filtered or unexported fields }
type LogFormatter ¶
type LogFormatter struct {
Logger LoggerInterface
}
LogFormatter is a simple logger that implements a middleware.LogFormatter.
func NewLogFormatter ¶
func NewLogFormatter(logger LoggerInterface) *LogFormatter
func (*LogFormatter) NewLogEntry ¶
func (l *LogFormatter) NewLogEntry(r *http.Request) middleware.LogEntry
NewLogEntry creates a new LogEntry for the request.
type LoggerInterface ¶
Click to show internal directories.
Click to hide internal directories.