Skip to content

Tag Definition: log

Generated by rlextra version 3.6.13

Attributes

Name

Required?

Default_Value

Values

level

implied

None

['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL']

Can contain
(#PCDATA | name | getName | pageNumber | evalString | loop_i | switch_i | assign_i | if_i | expr)*

Purpose

This lets you declare a log to appear in the console upon document generation.

Example usage

<story>
    <log level="WARNING">THIS IS AN WARNING</log>
    <log level="ERROR">THIS IS AN ERROR</log>
    <log level="CRITICAL">THIS IS AN CRITICAL</log>
</story>

Note: Only relevant sections are used in this snippet. Some tags were not included. See some of our samples for further insight of how you may go about setting up a full document using rml.

Example of nesting path from the parent tags to the current tag

<document> ➔ <story> ➔ <log>