This makes it possible to enable all web related logging via "org.springframework.web" including logging from lower-level packages such as "org.springframework.messaging.simp".
To see logging from the primary classes where log messages originate from, simply enable logging for "org.springframework.messaging".
LogDelegateFactory
| Modifier and Type | Field and Description |
|---|---|
| private static final Log |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Log | |
| public static Log | Returns: the resulting composite loggerthe class for the name of the primary logger primaryLoggerClass)Create a primary logger for the given class and wrap it with a composite that delegates to it or to the fallback logger named "org.springframework.web.SimpLogging", if the primary is not enabled. |
| fallbackLogger | back to summary |
|---|---|
| private static final Log fallbackLogger | |
| SimpLogging | back to summary |
|---|---|
| public SimpLogging() | |
| forLog | back to summary |
|---|---|
| public static Log forLog(Log primaryLogger) Wrap the given primary logger with a composite logger that delegates to either the primary or to the shared fallback logger "org.springframework.web.HttpLogging", if the primary is not enabled. | |
| forLogName | back to summary |
|---|---|
| public static Log forLogName(Class<?> primaryLoggerClass) Create a primary logger for the given class and wrap it with a composite that delegates to it or to the fallback logger named "org.springframework.web.SimpLogging", if the primary is not enabled. | |