forScopeAndLogSite

public static MetadataProcessor forScopeAndLogSite(Metadata scopeMetadata, Metadata logMetadata)

Returns a new processor for the combined scope and log-site metadata. Note that this returned instance may read directly from the supplied metadata during processing, so the supplied metadata must not be modified while the processor instance is being used.

Return

a processor to handle a unified view of the data

Parameters

scopeMetadata

Metadata for the current scope (i.e. from ScopedLoggingContext)

logMetadata

Metadata extracted from the current log statement (i.e. from LogData)