Documentation
¶
Index ¶
- func SetServiceName(name string)
- type LogEntry
- func (l *LogEntry) Debug(args ...interface{})
- func (l *LogEntry) Error(err interface{}, args ...interface{})
- func (l *LogEntry) Fatal(args ...interface{})
- func (l *LogEntry) Fields() map[string]interface{}
- func (l *LogEntry) Info(args ...interface{})
- func (l *LogEntry) Panic(args ...interface{})
- func (l *LogEntry) Printf(format string, args ...interface{})
- func (l *LogEntry) Warn(args ...interface{})
- func (l *LogEntry) WithAction(action string) *LogEntry
- func (l *LogEntry) WithAllowedGroups(groups []string) *LogEntry
- func (l *LogEntry) WithBackoffDuration(resetDuration time.Duration) *LogEntry
- func (l *LogEntry) WithBackoffReset(resetTime time.Time) *LogEntry
- func (l *LogEntry) WithCircuitChangeFrom(from interface{}) *LogEntry
- func (l *LogEntry) WithCircuitChangeTo(to interface{}) *LogEntry
- func (l *LogEntry) WithClientID(clientID string) *LogEntry
- func (l *LogEntry) WithCookieDomain(domain string) *LogEntry
- func (l *LogEntry) WithCookieExpire(expiration time.Duration) *LogEntry
- func (l *LogEntry) WithCookieHTTPOnly(httpOnly bool) *LogEntry
- func (l *LogEntry) WithCookieName(name string) *LogEntry
- func (l *LogEntry) WithCookieRefresh(refresh time.Duration) *LogEntry
- func (l *LogEntry) WithCookieSecure(isSecure bool) *LogEntry
- func (l *LogEntry) WithEndpoint(endpoint string) *LogEntry
- func (l *LogEntry) WithError(err error) *LogEntry
- func (l *LogEntry) WithHTTPStatus(status int) *LogEntry
- func (l *LogEntry) WithInGroups(groups []string) *LogEntry
- func (l *LogEntry) WithLifetimeDeadline(valid time.Time) *LogEntry
- func (l *LogEntry) WithNumCookieBytes(sz int) *LogEntry
- func (l *LogEntry) WithPageMessage(msg string) *LogEntry
- func (l *LogEntry) WithPageTitle(title string) *LogEntry
- func (l *LogEntry) WithProvider(provider string) *LogEntry
- func (l *LogEntry) WithProxyHost(host string) *LogEntry
- func (l *LogEntry) WithRedeemURL(url string) *LogEntry
- func (l *LogEntry) WithRefreshDeadline(refresh time.Time) *LogEntry
- func (l *LogEntry) WithRemoteAddress(address string) *LogEntry
- func (l *LogEntry) WithRequestDurationMs(duration float64) *LogEntry
- func (l *LogEntry) WithRequestHost(host string) *LogEntry
- func (l *LogEntry) WithRequestMethod(method string) *LogEntry
- func (l *LogEntry) WithRequestURI(uri string) *LogEntry
- func (l *LogEntry) WithResponseBody(body []byte) *LogEntry
- func (l *LogEntry) WithRewriteRoute(route interface{}) *LogEntry
- func (l *LogEntry) WithSessionValid(valid time.Time) *LogEntry
- func (l *LogEntry) WithSignInURL(url *url.URL) *LogEntry
- func (l *LogEntry) WithStatsdHost(host string) *LogEntry
- func (l *LogEntry) WithStatsdPort(port int) *LogEntry
- func (l *LogEntry) WithURLParam(param string) *LogEntry
- func (l *LogEntry) WithUser(user string) *LogEntry
- func (l *LogEntry) WithUserAgent(agent string) *LogEntry
- func (l *LogEntry) WithUserGroup(group string) *LogEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetServiceName ¶
func SetServiceName(name string)
SetServiceName configures the service name to log with each LogEntry.
Types ¶
type LogEntry ¶
type LogEntry struct {
// contains filtered or unexported fields
}
LogEntry is a wrapper around a logrus entry
func (*LogEntry) Debug ¶
func (l *LogEntry) Debug(args ...interface{})
Debug wraps the logrus Debug function
func (*LogEntry) Error ¶
func (l *LogEntry) Error(err interface{}, args ...interface{})
Error wraps the logrus Error function
func (*LogEntry) Fatal ¶
func (l *LogEntry) Fatal(args ...interface{})
Fatal wraps the logrus Fatal function
func (*LogEntry) Info ¶
func (l *LogEntry) Info(args ...interface{})
Info wraps the logrus Info function
func (*LogEntry) Panic ¶
func (l *LogEntry) Panic(args ...interface{})
Panic wraps the logrus Panic function
func (*LogEntry) Warn ¶
func (l *LogEntry) Warn(args ...interface{})
Warn wraps the logrus Warn function
func (*LogEntry) WithAction ¶
WithAction appends an `action` tag to a LogEntry indicating the URL action triggered.
func (*LogEntry) WithAllowedGroups ¶
WithAllowedGroups appends an `allowed_groups` tag to a LogEntry.
func (*LogEntry) WithBackoffDuration ¶
WithBackoffDuration appends a `backoff_duration` tag to a LogEntry.
func (*LogEntry) WithBackoffReset ¶
WithBackoffReset appends a `backoff_reset` tag to a LogEntry.
func (*LogEntry) WithCircuitChangeFrom ¶
WithCircuitChangeFrom appends a `circuit_change_from` tag to a LogEntry.
func (*LogEntry) WithCircuitChangeTo ¶
WithCircuitChangeTo appends a `circuit_change_to` tag to a LogEntry.
func (*LogEntry) WithClientID ¶
WithClientID appends a `client_id` tag to a LogEntry.
func (*LogEntry) WithCookieDomain ¶
WithCookieDomain appends a `cookie_domain` tag to a LogEntry.
func (*LogEntry) WithCookieExpire ¶
WithCookieExpire appends a `cookie_expire` tag to a LogEntry.
func (*LogEntry) WithCookieHTTPOnly ¶
WithCookieHTTPOnly appends a `cookie_http_only` tag to a LogEntry.
func (*LogEntry) WithCookieName ¶
WithCookieName appends a `cookie_name` tag to a LogEntry.
func (*LogEntry) WithCookieRefresh ¶
WithCookieRefresh appends a `cookie_refresh` tag to a LogEntry.
func (*LogEntry) WithCookieSecure ¶
WithCookieSecure appends a `cookie_secure` tag to a LogEntry.
func (*LogEntry) WithEndpoint ¶
WithEndpoint appends an `endpoint` tag to a LogEntry.
func (*LogEntry) WithError ¶
WithError appends an `error` tag to a LogEntry. Useful for annotating non-Error log entries (e.g. Fatal messages) with an `error` object.
func (*LogEntry) WithHTTPStatus ¶
WithHTTPStatus appends an `http_status` tag to a LogEntry.
func (*LogEntry) WithInGroups ¶
WithInGroups appends an `in_groups` tag to a LogEntry.
func (*LogEntry) WithLifetimeDeadline ¶
WithLifetimeDeadline appends a `lifetime_deadline` tag to a LogEntry.
func (*LogEntry) WithNumCookieBytes ¶
WithNumCookieBytes appends a `num_cookie_bytes` tag to a LogEntry.
func (*LogEntry) WithPageMessage ¶
WithPageMessage appends a `page_message` tag to a LogEntry.
func (*LogEntry) WithPageTitle ¶
WithPageTitle appends a `page_title` tag to a LogEntry.
func (*LogEntry) WithProvider ¶
WithProvider appends a `provider` tag to a LogEntry.
func (*LogEntry) WithProxyHost ¶
WithProxyHost appends a `proxy_host` tag to a LogEntry.
func (*LogEntry) WithRedeemURL ¶
WithRedeemURL appends a `redeem_url` tag to a LogEntry.
func (*LogEntry) WithRefreshDeadline ¶
WithRefreshDeadline appends a `refresh_deadline` tag to a LogEntry.
func (*LogEntry) WithRemoteAddress ¶
WithRemoteAddress appends a `remote_address` tag to a LogEntry.
func (*LogEntry) WithRequestDurationMs ¶
WithRequestDurationMs appends a `request_duration` tag to a LogEntry.
func (*LogEntry) WithRequestHost ¶
WithRequestHost appends a `request_host` tag to a LogEntry.
func (*LogEntry) WithRequestMethod ¶
WithRequestMethod appends a `request_method` tag to a LogEntry.
func (*LogEntry) WithRequestURI ¶
WithRequestURI appends a `request_uri` tag to a LogEntry.
func (*LogEntry) WithResponseBody ¶
WithResponseBody appends a `response_body` tag to a LogEntry.
func (*LogEntry) WithRewriteRoute ¶
WithRewriteRoute appends a `rewrite_route` tag to a LogEntry.
func (*LogEntry) WithSessionValid ¶
WithSessionValid appends a `session_valid` tag to a LogEntry.
func (*LogEntry) WithSignInURL ¶
WithSignInURL appends a `sign_in_url` tag to a LogEntry.
func (*LogEntry) WithStatsdHost ¶
WithStatsdHost appends a `statsd_host` tag to a LogEntry.
func (*LogEntry) WithStatsdPort ¶
WithStatsdPort appends a `statsd_port` tag to a LogEntry.
func (*LogEntry) WithURLParam ¶
WithURLParam appends a `url_param` tag to a LogEntry.
func (*LogEntry) WithUserAgent ¶
WithUserAgent appends a `user_agent` tag to a LogEntry.
func (*LogEntry) WithUserGroup ¶
WithUserGroup appends a `user_group` tag to a LogEntry.