LogMappings

public class LogMappings

Class used to store data about manipulations on event parameters before persisting logs in the database. LogMapping allows to include, exclude and replace parameters before persisting them in the log.

Constructors

LogMappings

public LogMappings(List<KeyValue> mappings, List<String> exclusions, List<String> inclusions)

Create an instance of LogMappings using passed parameters

Parameters:
  • mappings – list of KeyValue mappings
  • exclusions – list of parameters to exclude from the log
  • inclusions – list of parameters to include in the log

Methods

getExclusions

public List<String> getExclusions()

getInclusions

public List<String> getInclusions()

getMappings

public List<KeyValue> getMappings()

setExclusions

public void setExclusions(List<String> exclusions)

Sets exclusions from log - if an event contains a parameter key that is included in the exclusions list, that parameter will not be persisted in the database log.

Parameters:
  • exclusions – list of parameters to exclude from log

setInclusions

public void setInclusions(List<String> inclusions)

Sets inclusions to log - if an event contains a parameter key that is included in the inclusions list, that parameter will be persisted in the database log. By default all parameters are included.

Parameters:
  • inclusions – list of parameters to include in log

setMappings

public void setMappings(List<KeyValue> mappings)

Sets replacement map for event parameters in the form of a KeyValue list. See KeyValue for more information.

Parameters:
  • mappings – list of KeyValue mappings