| 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
>
| |
|
| try
<b>
com.mycompagny.myproject.portlet.*=all=enabled
</b>
without <b>traceString=</b>
| |
|
| forget what i have say.
I've reply too fast.
sorry.
|
|
|
|