Wrox Home  
Search P2P Archive for: Go

  Return to Index  

enterprise_java_beans thread: WLS 5.1: weblogic.logging.LogOutputStream problem


Message #1 by murkimurk@g... on Tue, 3 Apr 2001 17:18:22
my problem isn't the creation of the LogOutputStream but the writing to it:

try{
 logger.error(logMessage);
} catch(Exception e){
     e.printStackTrace( );
     System.out.prinltn(e);
}

but unfortunately the logger.error() method doesn't throw an Exception, 
even if weblogic can't write any more to the weblogic.log (e.g. disc full)

thanks

Mark

> ues try and catch block for this statement then printStackTrace  to 
print the whole error
> message and you can see what error happened
> 
> try{
>        LogOutputStream logger = new LogOutputStream("MyName");
> }catch (Exception e){
>     e.printStackTrace( );
>     System.out.prinltn(e);
> }
> 
> 
> murkimurk@g... wrote:
> 
> > Hi,
> >
> > I want to log some messages from my EJBs to the weblogic.log file using
> > the weblogic.logging.LogOutputStream like this:
> >
> > LogOutputStream logger = new LogOutputStream("MyName");
> > logger.error(logMessage);
> >
> > unfortunately the LogOutputStream.error() method doesn't recognize, if
> > weblogic can't write to the weblogic.log file (e.g. disc full).
> > Does anybody know something about the 
weblogic.logging.LogOutputStream? I
> > couldn't find an API documentation.
> > What other possibilities are there to write a system protocoll from an
> > EJB?
> >
> > thanks
> >
> > Mark

  Return to Index