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.