> 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.
>
+0 - I think it might be better to use the existing Log class as the wrapper to
ensure backwards-compatibility. However, in concept, I agree with you.
> just my 2c...
> Rafal
>
--
Christopher Elkins
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]