You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Oliver Zeigermann <oz...@c1-fse.de> on 2003/11/14 14:22:50 UTC

Revise Logging?

I have come across the fact that you can either log a message or a 
throwable. Of course you can cope with this with two logging statements, 
first logging message, second throwable. As this isn't too obvious, I 
thought we might add a new method to interface 
org.apache.slide.util.logger.Logger to allow this

     /**
      * Log an object and an associated throwable thru the specified 
channel and with the specified level.
      *
      * @param data object to log
      * @param throwable throwable to be logged
      * @param channel channel name used for logging
      * @param level level used for logging
      */
     public void log(Object data, Throwable throwable, String channel, 
int level);


Though, this is a change of a main interface, so I am not quite sure if 
it is worth it. I can adapt implementations inside Slide, but what about 
compatibility to exeternal stuff?

Oliver



---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org


Re: Revise Logging?

Posted by Stefano Mazzocchi <st...@apache.org>.
On 14 Nov 2003, at 16:43, Kent Sølvsten Rasmussen wrote:

> Any particular reasons for not just using Log4j or the Avalon Logkit 
> instead of implementing another Logger?

There is Log4j adapter already in the tree, you can change what logger 
to use in the domain.xml file.

As for why slide has its own logging interface? I don't know, probably 
an historical reason.

--
Stefano.

Re: Revise Logging?

Posted by Kent Sølvsten Rasmussen <ke...@aarhusmail.dk>.
Any particular reasons for not just using Log4j or the Avalon Logkit instead of implementing another Logger?

Kent


Martin Holz <ho...@fiz-chemie.de> wrote:
> Oliver Zeigermann <oz...@c1-fse.de> writes:
> 
> > Though, this is a change of a main interface, so I am not
> quite sure
> > if it is worth it. I can adapt implementations inside
> Slide, but what
> > about compatibility to exeternal stuff?
> 
> From 1.0.16 to 2.0 is a change in the major version number.
> 
> Don't worry to much about compability. 
> 
> Martin
> 
> 
> ------------------------------------------------------------
> ---------
> To unsubscribe, e-mail:
> slide-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> slide-dev-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org


Re: Revise Logging?

Posted by Martin Holz <ho...@fiz-chemie.de>.
Oliver Zeigermann <oz...@c1-fse.de> writes:

> Though, this is a change of a main interface, so I am not quite sure
> if it is worth it. I can adapt implementations inside Slide, but what
> about compatibility to exeternal stuff?

>From 1.0.16 to 2.0 is a change in the major version number. 
Don't worry to much about compability. 

Martin


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org