1. Find the directory for creating a project in WebLogic: user_projects \ Domains \ water \ bin
2. Find startweblogic. CMD and edit the file.
3. as follows:
If "% wls_redirect_log %" = ""(
Echo starting WLS with line: Echo % java_home % \ bin \ Java % java_vm % mem_args %-dweblogic. name = % SERVER_NAME %-djava. security. policy = % wl_home % \ Server \ Lib \ weblogic. policy % java_options % proxy_settings % server_class % % Java_home % \ bin \ Java % java_vm % mem_args %-dweblogic. Name = % SERVER_NAME %
-Dweblogic. stdout = "C: \ 1.log"-dweblogic. stderr =" C: \ 2.log" -Djava. Security. Policy = % wl_home % \ Server \ Lib \ weblogic. Policy % java_options % proxy_settings % server_class %) else ( Echo redirecting output from WLS window to % wls_redirect_log % % Java_home % \ bin \ Java % java_vm % mem_args %-dweblogic. name = % SERVER_NAME %-dweblogic. stdout = "C: \ 1.log"-dweblogic. stderr = "C: \ 2.log"-djava. security. policy = % wl_home % \ Server \ Lib \ weblogic. policy % java_options % proxy_settings % server_class %> "% wls_redirect_log %" 2> & 1)
The path and file name are customized.
4. Restart the Weblogic service and you will find that the standard console no longer outputs information, and the original console output information is saved to the defined log file.