This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
org.gramar.base:tag.log [2016/06/26 23:36] bradbouldin [log Tag] |
org.gramar.base:tag.log [2016/06/27 20:34] (current) |
||
---|---|---|---|
Line 4: | Line 4: | ||
The log tag processes and writes its content to the platform-appropriate console. | The log tag processes and writes its content to the platform-appropriate console. | ||
+ | |||
+ | ^ Attribute ^ Kind ^ Required ^ Purpose ^ | ||
+ | |**severity** |string |yes |Indicates the importance of the message to be logged. | | ||
+ | |||
+ | === Full Form === | ||
<**c:log** **severity**="" > | <**c:log** **severity**="" > | ||
- | ^ Attribute ^ Kind ^ Required ^ Purpose ^ | ||
- | |**severity** |string |yes |Indicates the importance of the message to be logged: debug, info (the default), warning, error, or severe. | | ||
- | === Usage and examples === | + | === Usage and Samples === |
+ | |||
+ | |||
+ | When launching a gramar (via org.gramar.Apply), you set logging level via the **logging** parameter: e.g.: | ||
+ | <code>java -cp ... org.gramar.Apply gramar=my.gramar model=my.model.xml workspace=gen logging=debug</code> | ||
- | Place a `taglib` element within `<taglibs>` element in the **gramar.config** file in the root of your gramar: | ||
- | <taglibs> | ||
- | <taglib prefix="c" extension="org.gramar.base" /> | ||
- | </taglibs> | ||
Return to [[org.gramar.base:index|index]] | Return to [[org.gramar.base:index|index]] |