public abstract class SimpLogging
extends java.lang.Object
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
Constructor and Description |
---|
SimpLogging() |
Modifier and Type | Method and Description |
---|---|
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.
|
static Log |
forLogName(java.lang.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.
|
public static Log forLogName(java.lang.Class<?> primaryLoggerClass)
primaryLoggerClass
- the class for the name of the primary loggerpublic static Log forLog(Log primaryLogger)
primaryLogger
- the primary logger to use