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. XMap
  7. Libraries
  8. Schema Object
  9. Command Line Interface
  10. Scripts
  11. Parsers
  12. Script Ports
  13. Document Processors
  14. Formats
  15. Data Holders
  16. Anchors
  17. Transformers
  18. Actions
  19. Serializers
  20. Mappers
  21. Locators, Keys, and Indexing
  22. Streamers
  23. Validators, Notifications, and Failure Handling
  24. Validation Rules
  25. 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').