Skip to main content

LogCommitter

Logs data associated with every document crawled without saving them.

committer/coreJavadoc: LogCommitter

Notes

Logs all document data to the application log without saving the documents to any persistent store. Useful for debugging and development to inspect what documents and fields the crawler produces. Not intended for production use.

Usage

class: LogCommitter
fieldMappings: {}
fieldMatcher:
ignoreCase: false
ignoreDiacritic: false
matchEmpty: false
method: BASIC
negateMatches: false
partial: false
pattern: string
replaceAll: false
trim: false
ignoreContent: false
logLevel: TRACE
restrictions:
- fieldMatcher: {}
valueMatcher: {}

Properties

PropertyTypeRequiredDefault
fieldMappingsRecord<string, string>No-
fieldMatcherTextMatcherNoTextMatcher
ignoreContentbooleanNofalse
logLevelenumNo-
restrictionsPropertyMatcher[]No-

Property Details

fieldMappings

Mapping of source fields to target ones to be logged.

fieldMatcher

Log values of matching field names. Leave empty to log values from all fields.

ignoreContent

Do not log document content.

logLevel

The log level used when printing values.

Allowed Values

  • TRACE
  • DEBUG
  • INFO
  • WARN
  • ERROR
  • STDOUT
  • STDERR

restrictions

Defines filter conditions that restrict which documents this committer processes. Documents not matching the restrictions are ignored by this committer.