Any other ambient field worth repeating on every line.
OptionalcomponentWhich part of the application emitted the line — a class, a module, a
background task. The answer to "where in this service", where service
answers "which service".
OptionalmethodHTTP method of the request being handled.
OptionalpathPath of the request being handled.
OptionalrequestCorrelates every line produced while handling one request.
OptionalserviceWhich deployment emitted the line.
Stamped by Logger.fromEnv from SERVICE_NAME. Set it here only to
override that for one logger.
Ambient fields attached to every line a logger emits.
Remarks
Ambient means constant for the span — the request being handled, the component doing the handling. Anything that varies from one line to the next is the logger's
dataargument instead, and the event name is neither: it is the first argument, and it names what happened.serviceis below but is not normally passed here: Logger.fromEnv stamps it from the environment on every line it creates. Passing it in overrides that for one logger, which a fan-in — a relay logging on behalf of the service it forwarded for — occasionally wants and nothing else does. Naming a class or a module is whatcomponentis for.Author
Bayu Dwiyan Satria
Version
1.2.0
Since
1.0.0