aspose file tools*
The moose likes BEA/Weblogic and the fly likes How to redirect out file to log file in weblogic 10.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How to redirect out file to log file in weblogic 10.3" Watch "How to redirect out file to log file in weblogic 10.3" New topic
Author

How to redirect out file to log file in weblogic 10.3

Ramakanta Sahoo
Ranch Hand

Joined: Aug 23, 2008
Posts: 254

Hi All,

Right now we are redirecting stdout file to .out log and rotating each .out file using logrotate in linux. but the issue is when we use log rotate to rotate the out file it creates a very big binary line in the out file after it gets rotated which makes the .out file unreadable by monitoring tools but if we delete the first binary line then we are able to read the log by monitoring tools.

Now the question: Is there anyway to redirect the .out file output to the server .log file so that weblogic will be able to manage the log rotation and we can configure it to rotate using weblogic admin console.

is this going to work ./StartManagedWeblogic.sh >> server.log 2>&1


Regards, Ricky
Oracle Weblogic 10g Certified Expert TechPaste.Com
Debasis Dana
Greenhorn

Joined: Jul 21, 2011
Posts: 5
this should work..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to redirect out file to log file in weblogic 10.3