Categories
Description
0..n <category> elements may be declared within an enclosing <categories> element.
Category Attributes
name | The category name (required). |
priority | An optional logging channel priority value. Allowable values include DEBUG, INFO, WARN, and ERROR. |
target | An optional logging channel target. |
Example
the following component directive is asserting that the two subsidiary logging channels (alpha and beta) shall be established with the respective priorities of WARN and ERROR.
<component xmlns="dpml:metro" dest="target/test/categories.part" test="true" activation="true" type="net.dpml.test.categories.CategoriesComponent" collection="hard"> <categories> <category name="alpha" priority="warn"/> <category name="beta" priority="error"/> </categories> <component>
Technical Notes
Overriding of category settings via metro comandline settings is not supported at this time. While the commandline handler does pass a categories configuration uri to the ComponentAdapter, the adapter does not currently support this feature. A second issue relates to non-assignment of logging category targets within the runtime DefaultComponentHandler.