-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: shameless WebLogic question
PostPosted: Fri Nov 21, 2003 10:14 am 
Newbie

Joined: Tue Nov 11, 2003 6:24 pm
Posts: 17
I have Hibernate setup to log SQL and debug info via my log4j.properties. All of this information is going to my console. However, I'd like it to also go to the WL log file. Logging level in WL is set to info but I don't see any Hibernate messages in there. Is any familiar with how I can capture all stdout messages in WL's log or is there a way to redirect it there via log4j?

I'm using WL 8.1.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 21, 2003 2:42 pm 
Regular
Regular

Joined: Tue Oct 28, 2003 8:25 am
Posts: 72
Location: Belgium
I don't know of any way to tell weblogic to append stdout messages to its logger nor of a way to tell log4j to do so (weblogic has a proprietary logging api).

In fact I've never felt the need to use the weblogic logger, except when I'm writing a module to plug in (startup classes mainly) but this could be possible by writing a log4j appender that would forward logs to the WL logger using its internal API.

Have a look at http://edocs.bea.com/wls/docs81/javadoc ... ogger.html


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 21, 2003 3:17 pm 
Newbie

Joined: Tue Nov 11, 2003 6:24 pm
Posts: 17
I think you are right. I finally found something in the WL docs regarding sending stdout to a file. This helps. In 8.1 you can add

-D WebLogic.Stdout="myfile.log" to JAVA_OPTIONS


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 21, 2003 7:48 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
http://dev2dev.bea.com/resourcelibrary/utilitiestools/adminmgmt.jsp
http://ftpna2.bea.com/pub/downloads/WebLogicAppender.zip

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 15, 2008 9:34 pm 
Newbie

Joined: Tue Jan 15, 2008 9:33 pm
Posts: 1
Quote:
I think you are right. I finally found something in the WL docs regarding sending stdout to a file. This helps. In 8.1 you can add

-D WebLogic.Stdout="myfile.log" to JAVA_OPTIONS


Is there a command line argument you can specify for log file rotation as well?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.