简体   繁体   中英

Logs are getting truncated and showing this " Truncated. see log file for complete stacktrace" in weblogic console?

I am using WebLogic Console to see logs but my logs are truncated and showing this message

Truncated. see log file for complete stacktrace

How to show full logs for exception stacktrace. For logs, I am using log4j2.xml file configuration.

Please refer the below screenshot and anyone please give me a solution or suggestion.

public void printStackTrace(int level, Throwable e) {
    ByteArrayOutputStream ops = new ByteArrayOutputStream();
    PrintStream ps = new PrintStream(ops);
    e.printStackTrace(ps);
    logger.error(e);
}

在此处输入图像描述

By default, the stack trace depth is set to 5 lines, only for stdout. You can update this parameter in the admin console for instance: Servers//logging/Advanced, parameter "stdout Stack Trace Depth"
Set it to -1 to see complete stack traces.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM