how to print stack trace into log file in weblogic

Viewed 12

weblogic version:10.3.6.0
I want to print e.printStackTrace() into log file in Weblogic,but just record "error===",no stack trace found.

try {
    int i=1/0;
} catch (Exception e) {
    log.error("error===");
    e.printStackTrace();
}

weblogic start shell:

nohup /weblogic/user_projects/domains/myapp/bin/startManagedWebLogic.sh myapp http://myapp:8008 >> /weblogic/log/myapp.out &

Question
In the tomcat or springboot jar,nohup & worked,but failed in the weblogic.
Could anyone tell me how to log the stack trace,Thks

0 Answers
Related