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