下面列出了怎么用org.springframework.core.log.LogDelegateFactory的API类实例代码及写法,或者点击链接到github查看源代码。
/**
* 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.
* @param primaryLogger the primary logger to use
* @return the resulting composite logger
*/
public static Log forLog(Log primaryLogger) {
return LogDelegateFactory.getCompositeLog(primaryLogger, fallbackLogger);
}
/**
* Wrap the given primary logger with a composite logger that delegates to
* it or to the fallback logger "org.springframework.web.HttpLogging",
* if the primary is not enabled.
* @param primaryLogger the primary logger to use
* @return the resulting composite logger
*/
public static Log forLog(Log primaryLogger) {
return LogDelegateFactory.getCompositeLog(primaryLogger, fallbackLogger);
}
/**
* 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.
* @param primaryLogger the primary logger to use
* @return the resulting composite logger
*/
public static Log forLog(Log primaryLogger) {
return LogDelegateFactory.getCompositeLog(primaryLogger, fallbackLogger);
}
/**
* Wrap the given primary logger with a composite logger that delegates to
* it or to the fallback logger "org.springframework.web.HttpLogging",
* if the primary is not enabled.
* @param primaryLogger the primary logger to use
* @return the resulting composite logger
*/
public static Log forLog(Log primaryLogger) {
return LogDelegateFactory.getCompositeLog(primaryLogger, fallbackLogger);
}