weblogic log rotation

Java App Servers Question

Weblogic 8.
Currently redirecting stdout and stderr of a JVM from inside the startscript to a file (via 2>&1). Looking into using instead:
-Dweblogic.Stdout="stdout-filename"
-Dweblogic.Stderr="stderr-filename"
But have some questions:
1> Can these be sent to the same file (as in the redirect from inside the script) or will there be a filehandle issue?
2> Is there any way to rotate these via the weblogic console (I see there is for the server log based on time, size etc...). Or are you on your own to rotate these?

Default Text
 

Verified Answer?

The member who asked this question verified this comment provided the solution that solved their problem.

by:Posted on 2007-03-14 at 05:32:39ID: 18717746

> Can these be sent to the same file (as in the redirect from inside the script) or will there be a filehandle issue?

We do this all the time - and there really is no issue.

2> Is there any way to rotate these via the weblogic console (I see there is for the server log based on time, size etc...). Or are you on your own to rotate these?

As far as I know weblogic 8 does not provide a way to rotate the logs.. However if you are on Unix, you do have the utility logrotate which you can use (try man logrotate to read more about this):

From "man logrotate":

DESCRIPTION
       logrotate is designed to ease administration of systems that generate large numbers of log
files.  It allows automatic rotation, compression, removal, and mailing of log files.  Each log
file may be han­dled daily, weekly, monthly, or when it grows too large.

This content is available to Experts Exchange members

See the answer now
with your Free 30 Day Trial

Get unlimited access to solutions & experts

  • 4,169,477 solved questions
  • 3,805 articles & videos
  • 15,413 tech experts

Get Access Now

Need a customized answer?
Ask your question for one-on-one assistance. We will email you when an expert has commented on your question.

We will never share this with anyone. Privacy Policy Terms of Use

Select topics

You may select up to five topics.

201504-LO-Qu-066

Related Articles

Related Questions

Experts Exchange powers the growth and success
of technology professionals worldwide.

  • Solve

    Experts Exchange is the tech professional’s trusted, on-demand resource for solving difficult problems, making informed decisions, and delivering excellent solutions.

  • Learn

    With unparalleled access to technical experts, verified real-world solutions, and diverse educational content, Experts Exchange enables personalized development of technology skills.

  • Network

    Experts Exchange gives you the professional exposure and valued relationships key to building the career you want.

Join the Network Today

See Plans and Pricing