| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | enableLogging(final Logger
the logger logger)Implements org. |
| protected final Logger | |
| 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 | |
| AbstractLogEnabled | back to summary |
|---|---|
| public AbstractLogEnabled() | |
| enableLogging | back to summary |
|---|---|
| public void enableLogging(final Logger logger) Implements org. Set the components logger.
| |
| 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.
| |
| 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. | |