on 7/18/2000 10:40 AM, "Rafal Krzewski" <[EMAIL PROTECTED]> wrote:
> Just imagine
> ((LogService)TurbineServices.getService("TurbineLogService")).error("ouch!");
> that's lots of typing to log something. Maybe we should have a
> static method in Turbine class that's wrapped around this
>
> public class Turbine extends Servlet {
> ...
> public static LogService log()
> {
> return (LogService)TurbineServices.getServices("TurbineLogService");
> }
> ...
> }
>
> now, logging would look much neater:
> Turbine.log().error("Ouch!");
> and in the backend there's still a plugable implemetation layer.
No, all of that is silly, you don't need to do that. It could be as simple
as:
Log.debug("Ouch!");
...and still be a service on the back end.
-jon
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]