PrivateconstructorConstructs a LogFields.
The admitted names, or null to admit every field.
Private ReadonlyallowedThe admitted names, or null when every field is admitted.
StaticfromReads the declaration for the current environment.
Anything carrying an optional LOG_FIELDS. Tolerates null.
The resolved allow-list.
Private StaticparseReads a comma-separated declaration.
The declaration, such as requestId,method,path.
The allow-list it describes.
Whether a context field reaches the line.
The field name.
True when the field is admitted.
Selects which ambient context fields reach a log line.
Remarks
Reads the comma-separated
LOG_FIELDSdeclaration before the configuredlogging.fieldsfallback. A star admits everything; an empty declaration admits nothing. An unset declaration uses the configured fields, or all fields when no fallback is registered.This selection applies to context only. Payload fields passed to an individual log call are always retained.
Example
Author
Bayu Dwiyan Satria
Version
1.2.1
Since
1.2.1