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 ?
out will print all logs related to your java application deployed whereas . log file will print all logs related to weblogic server like startup.
In the left pane of the Console, expand Environment and select Servers. In the Servers table, click the name of the server instance whose logging you want to configure. Select Logging > General. In the Log File Name field, enter a path and filename for the server log.
By default, the server log file is located in the logs directory below the server instance root directory; for example, DOMAIN_NAME\ servers \SERVER_NAME\ logs \SERVER_NAME. log , where DOMAIN_NAME is the name of the directory in which you located the domain and SERVER_NAME is the name of the server.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With