DPML
DPML Metro: Categories Directive
HomeUtilitiesStationMetro
Categories Directive
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"
     class="net.dpml.test.categories.CategoriesComponent"
      name="categories"
      collection="hard"
      activation="startup">
    <categories>
      <category name="alpha" priority="warn"/>
      <category name="beta" priority="error"/>
    </categories>
  </component>