Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make WebLogic log all "console" message into a file?

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 ?

like image 908
MemoryLeak Avatar asked Nov 13 '11 15:11

MemoryLeak


People also ask

What is the difference between .out and .LOG file in WebLogic?

out will print all logs related to your java application deployed whereas . log file will print all logs related to weblogic server like startup.

How do I change the log file path in WebLogic?

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.

Where are the WebLogic log files?

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.


1 Answers

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

like image 179
JoseK Avatar answered Nov 12 '22 08:11

JoseK