问题
In Eclipse you can see all messages in console (output of System.out.println
), but in WebLogic, how can I get a file which contains all these message ?
回答1:
You can do this by either modifying the startWeblogic.cmd
or from the Admin console
See both options in detail at the docs
When you start the Administration Server, include the following Java option in the weblogic.Server
command:
-Dweblogic.log.RedirectStdoutToServerLogEnabled=true
Or from the Admin Console
来源:https://stackoverflow.com/questions/8112581/how-to-make-weblogic-log-all-console-message-into-a-file