|
|
@ -4,19 +4,19 @@ import com.fr.base.io.IOFile; |
|
|
|
import com.fr.base.io.XMLReadHelper; |
|
|
|
import com.fr.base.io.XMLReadHelper; |
|
|
|
import com.fr.config.MarketConfig; |
|
|
|
import com.fr.config.MarketConfig; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
import com.fr.general.FRLogManager; |
|
|
|
import com.fr.general.SessionLocalManager; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.LogDuration; |
|
|
|
|
|
|
|
import com.fr.stable.StableUtils; |
|
|
|
import com.fr.stable.StableUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.project.ProjectConstants; |
|
|
|
import com.fr.stable.project.ProjectConstants; |
|
|
|
|
|
|
|
import com.fr.stable.web.SessionProvider; |
|
|
|
import com.fr.stable.xml.XMLPrintWriter; |
|
|
|
import com.fr.stable.xml.XMLPrintWriter; |
|
|
|
import com.fr.stable.xml.XMLableReader; |
|
|
|
import com.fr.stable.xml.XMLableReader; |
|
|
|
import com.fr.third.apache.log4j.AppenderSkeleton; |
|
|
|
import com.fr.third.apache.log4j.AppenderSkeleton; |
|
|
|
import com.fr.third.apache.log4j.Level; |
|
|
|
import com.fr.third.apache.log4j.Level; |
|
|
|
import com.fr.third.apache.log4j.spi.LoggingEvent; |
|
|
|
import com.fr.third.apache.log4j.spi.LoggingEvent; |
|
|
|
import com.fr.web.core.SessionDealWith; |
|
|
|
import com.fr.web.core.SessionPoolManager; |
|
|
|
import com.fr.web.core.SessionIDInfor; |
|
|
|
import com.fr.web.core.TemplateSessionIDInfo; |
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
import com.fr.workspace.WorkContext; |
|
|
|
|
|
|
|
|
|
|
|
import java.io.ByteArrayInputStream; |
|
|
|
import java.io.ByteArrayInputStream; |
|
|
@ -96,13 +96,13 @@ public class ErrorInfoLogAppender extends AppenderSkeleton { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private String readTemplateID() { |
|
|
|
private String readTemplateID() { |
|
|
|
LogDuration logDuration = FRLogManager.getSession(); |
|
|
|
SessionProvider logDuration = SessionLocalManager.getSession(); |
|
|
|
if (logDuration == null) { |
|
|
|
if (logDuration == null) { |
|
|
|
return StringUtils.EMPTY; |
|
|
|
return StringUtils.EMPTY; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
String sessionID = logDuration.getSessionID(); |
|
|
|
String sessionID = logDuration.getSessionID(); |
|
|
|
SessionIDInfor infor = SessionDealWith.getSessionIDInfor(sessionID); |
|
|
|
TemplateSessionIDInfo infor = SessionPoolManager.getSessionIDInfor(sessionID, TemplateSessionIDInfo.class); |
|
|
|
if (infor == null) { |
|
|
|
if (infor == null) { |
|
|
|
return StringUtils.EMPTY; |
|
|
|
return StringUtils.EMPTY; |
|
|
|
} |
|
|
|
} |
|
|
|