You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Sreenivasa Majji <sr...@qovia.com> on 2003/09/16 22:24:01 UTC

Log4J with Applet problems.

Hi,
	I am using log4j inside an applet.
	I tried to configure log4j and every time it's giving me standard
	Log4.WARN: NO appenders found error.

	Is there any documentation which shows how to configure log4j with applets?
	Any help greatly appreciated.

/Sreenivasa Majji.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Re: Converting log4j.properties to log4j.xml

Posted by Scott Morgan <sc...@adligo.com>.
Yes XML is much more verbose than text property files.
The reason for converting, at least in my understanding, is that
there are a number of xml parser libraries in use and development
that will allow gui manipulation of these xml files in the future.
The struts console is a example of this kind of gui editor.
http://www.jamesholmes.com/struts/console/

However I don't know of one for Log4j as of yet.

Cheers,
Scott

> Is it true that the 3 lines in my log4j.properties file:
>
> log4j.logger.org.apache.commons=ERROR
> log4j.logger.org.apache.struts=WARN
> log4j.logger.servletunit.struts=WARN
>
> Will end up as 9 lines in log4j.xml (carriage returns aside)
>
>   <logger name="org.apache.commons">
>     <level value="WARN"/>
>   </logger>
>   <logger name="org.apache.struts">
>     <level value="WARN"/>
>   </logger>
>   <logger name="servletunit.struts">
>     <level value="WARN"/>
>   </logger>
>
> Just want to verify that this is the simplest way to convert a
> .properties to an .xml file?  Also, what's the main reason for
> converting - validation against a DTD?
>
> Thanks,
>
> Matt
>




---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


Converting log4j.properties to log4j.xml

Posted by Matt Raible <ma...@raibledesigns.com>.
Is it true that the 3 lines in my log4j.properties file:

log4j.logger.org.apache.commons=ERROR
log4j.logger.org.apache.struts=WARN
log4j.logger.servletunit.struts=WARN

Will end up as 9 lines in log4j.xml (carriage returns aside)

  <logger name="org.apache.commons">
    <level value="WARN"/>
  </logger>
  <logger name="org.apache.struts">
    <level value="WARN"/>
  </logger>
  <logger name="servletunit.struts">
    <level value="WARN"/>
  </logger>

Just want to verify that this is the simplest way to convert a
.properties to an .xml file?  Also, what's the main reason for
converting - validation against a DTD?

Thanks,

Matt



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org