Jato 1.2 Log class

HiHow can i set log level(Examle : JATO_TRACE ,APP_TRACE) for this new Log class(Jato 1.2).Can i read this log level from a properties file.Thanks in advanceShyam Gotur
[231 byte] By [Guest] at [2007-11-25 9:28:13]
# 1

Hi Syam--

For your example, call:

Log.setEnabledLevels(

DEFAULT_LOG_LEVELS | APP_TRACE | JATO_TRACE);

You may also want to call Log.setEchoToSystemOut(true) to make the messages

appear at the console. If you want to set these values from a property

file, you'll need to create that mechanism yourself.

Also note that the application message feature now works consistently in

JATO 1.2. In earlier versions, the servlet would try to append these

messages to the output stream after a forward occurred. This worked in some

containers and not others. JATO 1.2 appends the application messages to the

rendered JSP at the close of the <jato:useViewBean> tag, guaranteeing they

appear every time. Therefore, you might find it more convenient to use the

following techniques for small debugging tasks:

appMessage(<message>) (usable inside any ContainerView);

getRequestContext().getMessageWriter().println(<message>);

(usable anywhere you have the request context)

Todd

-- Original Message --

From: <<a href="/group/SunONE-JATO/post?protectID=061015180237038237048149031119172165041 146149234234041172211052205015143149">shyam_gotur@p...</a>>

Sent: Thursday, October 18, 2001 11:29 AM

Subject: [iPlanet-JATO] Jato 1.2 Log class

> Hi

>

> How can i set log level(Examle : JATO_TRACE ,APP_TRACE) for this new

> Log class(Jato 1.2).Can i read this log level from a properties file.

>

> Thanks in advance

> Shyam Gotur

>

>

>

> <a href="/group/SunONE-JATO/post?protectID=210083235237078198050118178206047166215 146166214017110250006230056039126077176105140127082088124241215002153">iPlane t-JATO-unsubscribe@egroups.com</a>

>

>

>

>

>

>

Guest at 2007-7-1 16:33:36 > top of Java-index,Development Tools,Java Tools...