WebSphere Portal Server - how to enable trace ?

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > January 2006 > how to enable trace ?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how to enable trace ?
yakafokon

2005-05-20, 7:03 am

Hello,

I would like to enable the trace in my portlet.
I'm using the PorletLog api :

getPortletLog().debug("this is my sample log");

and in the log.properties I add the following :

traceString=com.mycompagny.myproject.portlet.*=all=enabled

but I don't have any trace in the log file .... ?

I know I'm missing something but what ... ?

Thanks
yakafokon

2005-05-20, 7:12 am

All right I have finally give a try with some other methods :

getPortletLog().info("this is my trace");
getPortletLog().error("this is my trace");
getPortletLog().warn("this is my trace");

and it worked !

but now the point is why this line doesn't print anything in the log ... ? :

getPortletLog().debug("this is my trace");
Scott A. Roehrig

2005-05-20, 6:05 pm

I am guessing that the portletLog instance is a shared instance perhaps and
hence another class must be enabled for debug.

Try looking in the infocenter.


"yakafokon" <yakafokon.1pbz53@mail.webservertalk.com> wrote in message
news:yakafokon.1pbz53@mail.webservertalk.com...
>
> All right I have finally give a try with some other methods :
>
> getPortletLog().info("this is my trace");
> getPortletLog().error("this is my trace");
> getPortletLog().warn("this is my trace");
>
> and it worked !
>
> but now the point is why this line doesn't print anything in the log
> .. ? :
>
> getPortletLog().debug("this is my trace");
>
>
>
> --
> yakafokon
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message1067807.html
>



2006-01-20, 6:05 pm

try
<b>
com.mycompagny.myproject.portlet.*=all=enabled
</b>
without <b>traceString=</b>

2006-01-20, 6:05 pm

forget what i have say.
I've reply too fast.

sorry.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com