Deprecated
Use AbstractLogEnabled instead.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected final Logger | |
| public void | setLogger(final Logger
the logger logger)Implements org. |
| protected void | setupLogger(final Object
the component to pass logger object to component)Helper method to setup other components with same logger. |
| protected void | setupLogger(final Object
the component to pass logger object to component, final String the subcategory to use (may be null) subCategory)Helper method to setup other components with logger. |
| protected void | setupLogger(final Object
the component to pass logger object to component, final Logger the Logger logger)Helper method to setup other components with logger. |
| m_logger | back to summary |
|---|---|
| private Logger m_logger | |
| AbstractLoggable | back to summary |
|---|---|
| public AbstractLoggable() | |
| getLogger | back to summary |
|---|---|
| protected final Logger getLogger() Helper method to allow sub-classes to aquire logger. This method exists rather than exposing a member variable because it protects other users against future changes. It also means they do not have to use our naming convention. There is no performance penalty as this is a final method and will be inlined by the JVM.
| |
| setLogger | back to summary |
|---|---|
| public void setLogger(final Logger logger) Implements org. Set the components logger.
| |
| setupLogger | back to summary |
|---|---|
| protected void setupLogger(final Object component) Helper method to setup other components with same logger.
| |
| setupLogger | back to summary |
|---|---|
| protected void setupLogger(final Object component, final String subCategory) Helper method to setup other components with logger. The logger has the subcategory of this components logger. | |
| setupLogger | back to summary |
|---|---|
| protected void setupLogger(final Object component, final Logger logger) Helper method to setup other components with logger. | |