public class HibernateLoggerHelper
extends java.lang.Object
ACSLoggerFactory.
Simplification of the large number of hibernate loggers: The hibernate framework tries to use separate loggers with names being those of its java classes, e.g. "org.hibernate.cfg.Ejb3Column". ACS maps all of these logger requests to only 2 different loggers, which can be configured separately:
HIBERNATE_LOGGER_NAME_PREFIX.HIBERNATE_SQL_LOGGER_NAME_PREFIX.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
HIBERNATE_LOGGER_NAME_PREFIX
Mapped to all hibernate loggers except those from
HIBERNATE_SQL_LOGGER_NAME_PREFIX. |
static java.lang.String |
HIBERNATE_SQL_LOGGER_NAME_PREFIX
Mapped to hibernate loggers "org.hibernate.SQL" (for SQL statements)
and "org.hibernate.type.xyz" (for SQL binding parameters).
|
| Constructor and Description |
|---|
HibernateLoggerHelper() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearDelegateLoggers()
Should only be called by tests.
|
Logger |
getLogger(java.lang.String name) |
public static final java.lang.String HIBERNATE_LOGGER_NAME_PREFIX
HIBERNATE_SQL_LOGGER_NAME_PREFIX.public static final java.lang.String HIBERNATE_SQL_LOGGER_NAME_PREFIX
Hibernate announces that version 4 will rename the SQL logger to "org.hibernate.jdbc.util.SQLStatementLogger" which is why we already map that currently not existing logger name to the same sql logger.
public Logger getLogger(java.lang.String name)
ACSLoggerFactory.getLogger(String)public void clearDelegateLoggers()