You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by fachhoch <fa...@gmail.com> on 2011/11/29 17:23:10 UTC
logging the page class name
I want to log all the pages users are viewing without any much detail
just the page class name .
is there any way I can get this without adding my own log statements in code
?
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/logging-the-page-class-name-tp4119768p4119768.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: logging the page class name
Posted by nino martinez wael <ni...@gmail.com>.
Yeah and use context based logging
On Nov 29, 2011 5:32 PM, "Thomas Götz" <to...@richmountain.de> wrote:
> I would create my own base Page (where all other pages extend from) and
> add the desired logging statement there (onConfigure(), onBeforeRender()).
> Most of the times you already have a common base page anyway …
>
> Cheers,
> -Tom
>
>
> fachhoch wrote:
>
> > I want to log all the pages users are viewing without any much detail
> > just the page class name .
> > is there any way I can get this without adding my own log statements in
> code
> > ?
> >
> >
> >
> >
> > --
> > View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/logging-the-page-class-name-tp4119768p4119768.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: logging the page class name
Posted by Thomas Götz <to...@richmountain.de>.
I would create my own base Page (where all other pages extend from) and add the desired logging statement there (onConfigure(), onBeforeRender()). Most of the times you already have a common base page anyway …
Cheers,
-Tom
fachhoch wrote:
> I want to log all the pages users are viewing without any much detail
> just the page class name .
> is there any way I can get this without adding my own log statements in code
> ?
>
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/logging-the-page-class-name-tp4119768p4119768.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: logging the page class name
Posted by Martin Grigorov <mg...@apache.org>.
Enable DEBUG for org.apache.wicket.Page and you will see messages
like: ending request for page " + this + ", request " + getRequest()
On Tue, Nov 29, 2011 at 5:23 PM, fachhoch <fa...@gmail.com> wrote:
> I want to log all the pages users are viewing without any much detail
> just the page class name .
> is there any way I can get this without adding my own log statements in code
> ?
>
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/logging-the-page-class-name-tp4119768p4119768.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: logging the page class name
Posted by Marcelo Morales <ma...@gmail.com>.
On Tue, Nov 29, 2011 at 12:23 PM, fachhoch <fa...@gmail.com> wrote:
> I want to log all the pages users are viewing without any much detail
> just the page class name .
> is there any way I can get this without adding my own log statements in code
> ?
Override
on Application#init():
getRequestLoggerSettings().setRequestLoggerEnabled(true);
and put the logger org.apache.wicket.protocol.http.RequestLogger to debug.
--
Marcelo Morales
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org