# Functions
Auth returns an option you can pass to Event to include identity information, for example the identity type and user/service ID from an inbound HTTP request.
Error wraps the Event function with the severity level set to ERROR.
Event logs an event, to STDOUT if possible, or STDERR if not.
Fatal wraps the Event function with the severity level set to FATAL.
FormatErrors returns an option you can pass to Event to attach error information to a log event
# It uses error.Error() to stringify the error value
It also includes the error type itself as unstructured log data.
HTTP returns an option you can pass to Event to log HTTP request data with a log event.
Info wraps the Event function with the severity level set to INFO.
Middleware implements the logger middleware and captures HTTP request data
It implements http.Handler, and wraps an inbound HTTP request to log useful information including the URL, request start/complete times and duration, status codes, and number of bytes written.
SetDestination allows you to set the destination and fallback destination for log output.
Warn wraps the Event function with the severity level set to WARN.
# Constants
ERROR is an option you can pass to Event to specify a severity of ERROR/1.
FATAL is an option you can pass to Event to specify a severity of FATAL/0.
INFO is an option you can pass to Event to specify a severity of INFO/3.
SERVICE represents a service account type.
USER represents a user account type.
WARN is an option you can pass to Event to specify a severity of WARN/2.
# Variables
Namespace is the log namespace included with every log event.
# Structs
CustomError defines an error object that abides to the error type with the extension of including data field.
EventData is the data structure used for logging an event
It is the top level structure which contains all other log event data.
EventError is the data structure used for logging a error event.
EventHTTP is the data structure used for logging a HTTP event.
EventStackTrace is the data structure used for logging a stack trace.
# Type aliases
Data can be used to include arbitrary key/value pairs in the structured log output.
EventErrors is an array of error events.