wood burning stoves 2.0*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 247

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..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to redirect out file to log file in weblogic 10.3
 
Similar Threads
Wierd Session behaviour
log rotation problem
Failed to create resource (Security:090310) when deploying .ear
how to rotate stdout file in weblogic 8.1
Circular motion.......