Versions in this module Expand all Collapse all v0 v0.0.1 Mar 17, 2020 Changes in this version + func RequestLogging(config *Config) func(http.Handler) http.Handler + type AdditionalData map[string]interface + type Config struct + AdditionalData AdditionalData + ContextLogOut io.Writer + ProjectId string + RequestLogOut io.Writer + Severity Severity + func NewConfig(projectId string) *Config + type ContextLogger struct + AdditionalData AdditionalData + Severity Severity + Trace string + func RequestContextLogger(r *http.Request) *ContextLogger + func (l *ContextLogger) Alert(args ...interface{}) + func (l *ContextLogger) Alertf(format string, args ...interface{}) + func (l *ContextLogger) Alertln(args ...interface{}) + func (l *ContextLogger) Critical(args ...interface{}) + func (l *ContextLogger) Criticalf(format string, args ...interface{}) + func (l *ContextLogger) Criticalln(args ...interface{}) + func (l *ContextLogger) Debug(args ...interface{}) + func (l *ContextLogger) Debugf(format string, args ...interface{}) + func (l *ContextLogger) Debugln(args ...interface{}) + func (l *ContextLogger) Default(args ...interface{}) + func (l *ContextLogger) Defaultf(format string, args ...interface{}) + func (l *ContextLogger) Defaultln(args ...interface{}) + func (l *ContextLogger) Emergency(args ...interface{}) + func (l *ContextLogger) Emergencyf(format string, args ...interface{}) + func (l *ContextLogger) Emergencyln(args ...interface{}) + func (l *ContextLogger) Error(args ...interface{}) + func (l *ContextLogger) Errorf(format string, args ...interface{}) + func (l *ContextLogger) Errorln(args ...interface{}) + func (l *ContextLogger) Info(args ...interface{}) + func (l *ContextLogger) Infof(format string, args ...interface{}) + func (l *ContextLogger) Infoln(args ...interface{}) + func (l *ContextLogger) Notice(args ...interface{}) + func (l *ContextLogger) Noticef(format string, args ...interface{}) + func (l *ContextLogger) Noticeln(args ...interface{}) + func (l *ContextLogger) Warn(args ...interface{}) + func (l *ContextLogger) Warnf(format string, args ...interface{}) + func (l *ContextLogger) Warning(args ...interface{}) + func (l *ContextLogger) Warningf(format string, args ...interface{}) + func (l *ContextLogger) Warningln(args ...interface{}) + func (l *ContextLogger) Warnln(args ...interface{}) + type HttpRequest struct + CacheHit bool + CacheLookup bool + CacheValidatedWithOriginServer bool + Latency string + Protocol string + Referer string + RemoteIp string + RequestMethod string + RequestSize string + RequestUrl string + ResponseSize string + ServerIp string + Status int + UserAgent string + type HttpRequestLog struct + AdditionalData AdditionalData + HttpRequest HttpRequest + Severity string + Time string + Trace string + type Severity int + const SeverityAlert + const SeverityCritical + const SeverityDebug + const SeverityDefault + const SeverityEmergency + const SeverityError + const SeverityInfo + const SeverityNotice + const SeverityWarning + func (s Severity) String() string + type SourceLocation struct + File string + Function string + Line string