weblogic log rotation

    Question by:
    On

    Topics:

    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?

     

    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

    Ask Your Tech Question. Get Expert Solutions.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.

    Top Expert Contributor

    Essential articles and videos from the Experts

    More valuable questions with Expert answers

    201507-LO-Qu-065