Table of Contents

Search

  1. Preface
  2. Introduction to Data Transformation
  3. Data Processor Transformation
  4. Wizard Input and Output Formats
  5. Relational Input and Output
  6. Using the IntelliScript Editor
  7. XMap
  8. Libraries
  9. Schema Object
  10. Command Line Interface
  11. Scripts
  12. Parsers
  13. Script Ports
  14. Document Processors
  15. Formats
  16. Data Holders
  17. Anchors
  18. Transformers
  19. Actions
  20. Serializers
  21. Mappers
  22. Locators, Keys, and Indexing
  23. Streamers
  24. Validators, Notifications, and Failure Handling
  25. Validation Rules
  26. Custom Script Components

Data Transformation User Guide

Data Transformation User Guide

Configuring User Log Output

Configuring User Log Output

To define the user log output, assign the
on_fail
property of the appropriate transformation components. The following components have an
on_fail
property:
  • Parsers and anchors
  • Serializers and serialization anchors
  • Mappers and mapper anchors
The
on_fail
property can have the following values:
  • LogError
    . Writes an error message containing the
    VarLastFailure
    system variable to the user log.
  • LogWarning
    . Same as
    LogError
    , but displays the message as a warning rather than an error.
  • LogInfo
    . Same as
    LogError
    , but displays the message as information rather than an error.
  • CustomLog
    . Runs a serializer that writes a custom message to the user log or another location. For more information, see CustomLog.
  • NotifyFailure
    . Triggers a notification.
The following example illustrates a
Marker
anchor with a
LogInfo
configuration:
level 3 Marker >> level 4 selected checkbox optional level 4 search = TextSearch >> level 5 text = "Height" level 4 on_fail = LogInfo
If the
Marker
does not exist in the source document, the system writes the following entry in the user log:
*** INFO *** : Marker, [MyParser[11].Marker], Can't find Marker<optional>('Height').


Updated September 25, 2018