Thanks! This is helpful.

On Fri, Nov 6, 2009 at 4:56 PM, Vishal <[email protected]> wrote:

>
> Few things...
>
> * The Incubator logging , does not give us a declarative way of
> compiling out Loggers ( Or may be it is not that obvious ).
> * The Remote Logger is a a good example of defensive pgming, the
> default Remote Logger in Incubator, will result in too many RPCs.
> *  The ability to compile out the Log Levels is a neat trick. I think
> your code makes it possible to keep the compiled code lean and small
> *  Though we do not use it , the server side Remote Logging seems to
> marry the Log4J appy server side Logging with the GWT client side
>    logging. That obviously is an asset.
> * The docs seems more mature for gwt-log.
> * Not sure if Incubator has the ability to set a Custom Widget
> Container for a DivLogger .. This allows us to have a hidden Widget on
> client browser that may be brought to life ( unhidden ) with some
> trick.
>
> I may be wrong about the paucity of the same on the Incubator.. but it
> sure seems to lack few things we need and desire.
>
> We are carrying out further analysis  and will report further.
>
>
>
>
>
> On Nov 6, 1:53 am, Fred Sauer <[email protected]> wrote:
> > On Thu, Nov 5, 2009 at 8:52 PM, Vishal <[email protected]>
> wrote:
> >
> > > Sorry , I should have known that. It seems that when u disable, u
> > > compile the Logger out .
> > > The reason I was confused , was that I saw
> >
> > > Module declares a servlet class
> > > 'com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl', but the
> > > web.xml has no corresponding declaration; please add the following
> > > lines to your web.xml:
> > > <servlet>
> > >  <servlet-name>remoteLoggerServiceImpl</servlet-name>
> > >  <servlet-
> > > class>com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl</servlet-
> > > class>
> > > </servlet>
> > > <servlet-mapping>
> > >  <servlet-name>remoteLoggerServiceImpl</servlet-name>
> > >  <url-pattern>/wellbeing/gwt-log</url-pattern>
> > > </servlet-mapping>
> >
> > > in my hosted mode .
> >
> > > I guess , the above is something I can ignore as it  it an addition
> >
> > > <servlet path="/gwt-log"
> > > class="com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl"/>
> >
> > > in the gwt-log-impl.gwt.xml, which causes the above warning.
> >
> > That's correct. I think I need to implement this issue:
> http://code.google.com/p/gwt-log/issues/detail?id=26
> >
> > And I know this may be a naive question.. We like your impl better> than
> the one in incubator, do u :)?
> >
> > Thanks. Can I ask what you like better?
> >
> > Also, anything you like less?
> >
> >
> >
> >
> >
> > > On Nov 5, 2:08 pm, Fred Sauer <[email protected]> wrote:
> > > > You can disable the RemoteLogger (see the GettingStarted wiki) and
> add
> > > your
> > > > own.
> >
> > > > Fred
> >
> > > > On Thu, Nov 5, 2009 at 7:50 PM, Vishal <[email protected]>
> > > wrote:
> >
> > > > > Thank u,
> > > > >      By implementing Logger, I got it to work.
> >
> > > > > Here is what I would like to do.
> >
> > > > > * Add an injectable LogService.
> > > > > * The LogService creates the CustomLogger and injects into it , our
> > > > > ActionService ( RPC ).
> > > > > * The ActionService will based on the algorithm we define in
> > > > > CustomLogger , send the Logs across.
> >
> > > > > In this whole design , we desire to remove RemoteLogger ( the
> default
> > > > > RemoteLogger ) from being added to the List of Loggers.
> > > > > Is that possible?
> > > > > We of course want to retain all the other Loggers.
> >
> > > > > On Nov 5, 1:43 pm, Fred Sauer <[email protected]> wrote:
> > > > > > Note that the gwt-log source contains both client and server
> versions
> > > of
> > > > > the
> > > > > > same Java classes, which can be confusing.
> >
> > > > > > On Thu, Nov 5, 2009 at 7:02 PM, Vishal <
> [email protected]>
> > > > > wrote:
> >
> > > > > > > Hi,
> > > > > > >    We wanted to do the same thing, implement  a
> > > CustomRemoteLogger..
> > > > > > > Of course we extended AbstractLogger, yet we have
> >
> > > > > > > "This class must implement the inherited abstract method
> > > > > > > AbstractLogger.log(int, String), but cannot override it since
> it is
> > > > > > > not visible from OurLogger. Either make the type abstract or
> make
> > > the
> > > > > > > inherited method visible "
> >
> > > > > > > nskmda, Did u extend AbstractLogger and if u did  get this to
> > > compile?
> >
> > > > > > > On Sep 29, 10:37 am, nskmda <[email protected]> wrote:
> > > > > > > > Thanks, Fred.
> > > > > > > > I tried it. It works perfectly.
> >
> > > > > > > > Dmitry
> >
> > > > > > > > On Sep 28, 5:03 pm, Fred Sauer <[email protected]> wrote:
> >
> > > > > > > > > That's the right approach. You can include the logger in
> your
> > > > > > > onModuleLoad()
> > > > > > > > > to make it easy.
> > > > > > > > > Fred
> >
> > > > > > > > > On Mon, Sep 28, 2009 at 4:03 PM, nskmda <[email protected]>
> > > wrote:
> >
> > > > > > > > > > Do I get it right that I need to implement the Logger
> > > interface
> > > > > (or
> > > > > > > > > > extend the AbstractLogger)?
> > > > > > > > > > Is there any easier way to register my logger
> declaratively
> > > in
> > > > > GWT
> > > > > > > > > > config instead of registering it at runtime via
> > > Log.addLogger?
> > > > > > > > > > Will I have to always use
> > > > > Log.getLogger(MyLoggerClass.class).debug at
> > > > > > > > > > runtime?
> >
> > > > > > > > > > On Sep 28, 3:16 pm, Fred Sauer <[email protected]>
> wrote:
> > > > > > > > > > > Sure. Should be easy to do.
> >
> > > > > > > > > > > On Mon, Sep 28, 2009 at 2:57 PM, nskmda <
> [email protected]>
> > > > > wrote:
> >
> > > > > > > > > > > > Hello, all
> >
> > > > > > > > > > > > Is it possible to add/register my own implementation
> of a
> > > > > logger?
> > > > > > > > > > > > I would like to send log messages to my own servlet
> as
> > > well.
> >
> > > > > > > > > > > > Thanks,
> > > > > > > > > > > > Dmitry
> >
> > > > > > > > > > > --
> > > > > > > > > > > Fred Sauer
> > > > > > > > > > > Developer Advocate
> > > > > > > > > > > Google Inc. 1600 Amphitheatre Parkway
> > > > > > > > > > > Mountain View, CA 94043
> > > > > > > > > > > [email protected]
> >
> > > > > > > > > --
> > > > > > > > > Fred Sauer
> > > > > > > > > Developer Advocate
> > > > > > > > > Google Inc. 1600 Amphitheatre Parkway
> > > > > > > > > Mountain View, CA 94043
> > > > > > > > > [email protected]
> >
> > > > > > --
> > > > > > Fred Sauer
> > > > > > Developer Advocate
> > > > > > Google Inc.1600 Amphitheatre Parkway
> > > > > > Mountain View, CA 94043
> > > > > > [email protected]
> >
> > > > --
> > > > Fred Sauer
> > > > Developer Advocate
> > > > Google Inc.1600 Amphitheatre Parkway
> > > > Mountain View, CA 94043
> > > > [email protected]
> >
> > --
> > Fred Sauer
> > Developer Advocate
> > Google Inc.1600 Amphitheatre Parkway
> > Mountain View, CA 94043
> > [email protected]
> >
>


-- 
Fred Sauer
Developer Advocate
Google Inc.1600 Amphitheatre Parkway
Mountain View, CA 94043
[email protected]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"gwt-log" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gwt-log?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to