Redirect STDOUT logs to Server logs in weblogic.

Hi All,

Sometime we need to truncate the STDOUT Logs into parts as soon as it grows a certain limit. As STDOUT logs are controlled by JVM. But there are some tricks which we can use to achieve the same.

1. By Using Shell Script

2. By configuring one option in the Admin console of weblogic using JAVA_OPTIONS
-Dweblogic.log.RedirectStdoutToServerLogEnabled=true

Once we will start getting the STDOUT logs into server logs, we can easily rotate the server logs using Shell Script.


Thanks
R Vashi

Advertisements

One thought on “Redirect STDOUT logs to Server logs in weblogic.

  1. Pingback: Getting noticed is always nice | Michael vick Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s