|
|
|
@ -84,17 +84,16 @@ public class LoggerTemplate {
|
|
|
|
|
* @param isLocal true 存储本地, false不存储本地
|
|
|
|
|
*/
|
|
|
|
|
public void write(LoggerContext context, boolean isLocal) {
|
|
|
|
|
String elogLocalQueue = ELOG + this.applicationName;
|
|
|
|
|
String elogLocalQueue = ELOG + applicationName;
|
|
|
|
|
if (StringUtils.isEmpty(this.localQueue)) {
|
|
|
|
|
this.localQueue = (StringUtils.isNotEmpty(this.moduleName) ? this.moduleName : elogLocalQueue) + "LocalQueue" + this.publishkitGroup;
|
|
|
|
|
this.localQueue = (StringUtils.isNotEmpty(this.moduleName) ? this.moduleName : elogLocalQueue) + "LocalQueue" + publishkitGroup;
|
|
|
|
|
}
|
|
|
|
|
try {
|
|
|
|
|
handleContext(context);
|
|
|
|
|
loggerMessageListener.receiveold(context);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
logger.error("handleContext方法异常!{}", e.getMessage(), e);
|
|
|
|
|
logger.error("日志写入方法异常!{}", e.getMessage(), e);
|
|
|
|
|
}
|
|
|
|
|
loggerMessageListener.receiveold(context);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// public void writeLocal(LoggerContext context){
|
|
|
|
|