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 "Mark R. Diggory" <md...@latte.harvard.edu> on 2002/09/12 18:07:49 UTC

Documentation

Hello,

Can someone please provide a source for some information on the 
Conversion Pattern Syntax. Mostly I just want to know what the different 
elements ("%F" and the like) are defined as?

 I also would like to know the basic configuration attributes available 
for the standard appenders provided.

 I can't seem to find any documentation on these subjects.

-Mark



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


XML Configuration

Posted by "Mark R. Diggory" <md...@latte.harvard.edu>.
Another question:

What is the difference between name and class in a category?

<!-- If no level element is specified, then the configurator MUST not -->
<!-- touch the level of the named category. -->
<!ELEMENT category (param*, (priority | level)?, appender-ref*)>
<!ATTLIST category
    class CDATA #IMPLIED
    name CDATA #REQUIRED
    additivity (true | false) "true"
 >

ie

<category name="???" class="???">
    ...
</category>

-Mark




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Documentation

Posted by "Mark R. Diggory" <md...@latte.harvard.edu>.
Thanks all for your responses, this is all very helpful.

-Mark


Colin MacDonald wrote:

>>-----Original Message-----
>>
>>Can someone please provide a source for some information on the
>>Conversion Pattern Syntax. Mostly I just want to know what the different
>>elements ("%F" and the like) are defined as?
>>    
>>
>
>Do you mean for log formatting?  Using PatternLayout?  The PatternLayout
>Javadoc page has a table with all the formatting characters and their
>meanings:
>
>http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.html
>
>  
>
>> I also would like to know the basic configuration attributes available
>>for the standard appenders provided.
>>    
>>
>
>I think those are appender-dependent, but they're based on the method names.
>E.g. RollingFileAppender has a setFile method, so in log4j.xml, you add:
>  <param name="File" value="/path/to/logfile.log"/>
>or in log4j.properties:
>  log4j.appender.APPENDERNAME.File=/path/to/logfile.log
>
>Hope that helps, or did I misunderstand your question?
>
>-----------------------------------------------------------------
>Colin MacDonald  |  Software Developer  |  Templar Corporation  |
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.386 / Virus Database: 218 - Release Date: 9/9/2002
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>  
>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Documentation

Posted by Colin MacDonald <co...@templarcorp.com>.
> -----Original Message-----
>
> Can someone please provide a source for some information on the
> Conversion Pattern Syntax. Mostly I just want to know what the different
> elements ("%F" and the like) are defined as?

Do you mean for log formatting?  Using PatternLayout?  The PatternLayout
Javadoc page has a table with all the formatting characters and their
meanings:

http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.html

>  I also would like to know the basic configuration attributes available
> for the standard appenders provided.

I think those are appender-dependent, but they're based on the method names.
E.g. RollingFileAppender has a setFile method, so in log4j.xml, you add:
  <param name="File" value="/path/to/logfile.log"/>
or in log4j.properties:
  log4j.appender.APPENDERNAME.File=/path/to/logfile.log

Hope that helps, or did I misunderstand your question?

-----------------------------------------------------------------
Colin MacDonald  |  Software Developer  |  Templar Corporation  |
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.386 / Virus Database: 218 - Release Date: 9/9/2002


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>