org.wildfly.swarm.config.logging

## Class Logger<T extends Logger<T>>

- java.lang.Object
- - org.wildfly.swarm.config.logging.Logger<T>

-     public class Logger<T extends Logger<T>>
      extends Object

  Defines a logger category.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Logger(String key)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addPropertyChangeListener(PropertyChangeListener listener)` Adds a property change listener
    `String` | `category()` Specifies the category for the logger.
    `T` | `category(String value)` Specifies the category for the logger.
    `String` | `filterSpec()` A filter expression value to define a filter.
    `T` | `filterSpec(String value)` A filter expression value to define a filter.
    `String` | `getKey()`
    `T` | `handler(String value)` The handlers associated with the logger.
    `List<String>` | `handlers()` The handlers associated with the logger.
    `T` | `handlers(List<String> value)` The handlers associated with the logger.
    `T` | `handlers(String... args)` The handlers associated with the logger.
    `Level` | `level()` The log level specifying which message levels will be logged by the logger.
    `T` | `level(Level value)` The log level specifying which message levels will be logged by the logger.
    `void` | `removePropertyChangeListener(PropertyChangeListener listener)` Removes a property change listener
    `Boolean` | `useParentHandlers()` Specifies whether or not this logger should send its output to its parent Logger.
    `T` | `useParentHandlers(Boolean value)` Specifies whether or not this logger should send its output to its parent Logger.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### Logger

          public Logger(String key)

  - ### Method Detail

    - #### getKey

          public String getKey()

    - #### addPropertyChangeListener

          public void addPropertyChangeListener(PropertyChangeListener listener)

      Adds a property change listener

    - #### removePropertyChangeListener

          public void removePropertyChangeListener(PropertyChangeListener listener)

      Removes a property change listener

    - #### category

          public String category()

      Specifies the category for the logger.

    - #### category

          public T category(String value)

      Specifies the category for the logger.

    - #### filterSpec

          public String filterSpec()

      A filter expression value to define a filter. Example for a filter that does not match a pattern: not(match("JBAS.*"))

    - #### filterSpec

          public T filterSpec(String value)

      A filter expression value to define a filter. Example for a filter that does not match a pattern: not(match("JBAS.*"))

    - #### handlers

          public List<String> handlers()

      The handlers associated with the logger.

    - #### handlers

          public T handlers(List<String> value)

      The handlers associated with the logger.

    - #### handler

          public T handler(String value)

      The handlers associated with the logger.

    - #### handlers

          public T handlers(String... args)

      The handlers associated with the logger.

    - #### level

          public Level level()

      The log level specifying which message levels will be logged by the logger. Message levels lower than this value will be discarded.

    - #### level

          public T level(Level value)

      The log level specifying which message levels will be logged by the logger. Message levels lower than this value will be discarded.

    - #### useParentHandlers

          public Boolean useParentHandlers()

      Specifies whether or not this logger should send its output to its parent Logger.

    - #### useParentHandlers

          public T useParentHandlers(Boolean value)

      Specifies whether or not this logger should send its output to its parent Logger.

Copyright © 2017 JBoss by Red Hat. All rights reserved.