package log

Import Path
	github.com/joonix/log (on go.dev)

Dependency Relation
	imports 10 packages, and imported by one package

Involved Source Files formatter.go stackdriver.go
Package-Level Type Names (total 4, in which 3 are exported)
/* sort exporteds by: | */
Format configuration of the logrus formatter output. func NewFormatter(opts ...Format) *Formatter
Formatter that is called on by logrus. DisableTimestamp allows disabling automatic timestamps in output PrettyPrint will indent all json logs SeverityMap allows for customizing the names for keys of the log level field. TimestampFormat sets the format used for marshaling timestamps. Format the log entry. Implements logrus.Formatter. *T : github.com/sirupsen/logrus.Formatter func NewFormatter(opts ...Format) *Formatter func DisableTimestampFormat(f *Formatter) error func PrettyPrintFormat(f *Formatter) error func StackdriverFormat(f *Formatter) error
HTTPRequest contains an http.Request as well as additional information about the request and its response. https://github.com/googleapis/google-cloud-go/blob/v0.39.0/logging/logging.go#L617 CacheHit reports whether an entity was served from cache (with or without validation). CacheValidatedWithOriginServer reports whether the response was validated with the origin server before being served from cache. This field is only meaningful if CacheHit is true. Latency is the request processing latency on the server, from the time the request was received until the response was sent. LocalIP is the IP address (IPv4 or IPv6) of the origin server that the request was sent to. RemoteIP is the IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329". Request is the http.Request passed to the handler. RequestSize is the size of the HTTP request message in bytes, including the request headers and the request body. ResponseSize is the size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body. Status is the response code indicating the status of the response. Examples: 200, 404. ( T) MarshalJSON() ([]byte, error) T : encoding/json.Marshaler
Package-Level Functions (total 6, in which 4 are exported)
NewFormatter with optional options. Defaults to the Stackdriver option.
StackdriverFormat maps values to be recognized by the Google Cloud Platform. https://cloud.google.com/logging/docs/agent/configuration#special-fields
Package-Level Variables (only one, which is exported)
DefaultFormat is Stackdriver.