org.apache.cocoon.util.log |
LogKit related utilities
LogKit related utilities
|
Java Source File Name | Type | Comment |
CocoonLogFormatter.java | Class | An extended pattern formatter. |
CocoonStreamTargetFactory.java | Class | TargetFactory for
org.apache.log.output.io.StreamTarget .
This factory is able to create different StreamTargets according to the following
configuration syntax:
<stream id="foo">
<stream>stream-context-name</stream>
<format type="raw|pattern|extended|xml|cocoon">pattern to be used if needed</format>
</stream>
The "stream-context-name" is the name of an java.io.OutputStream that
is fetched in the context. |
CocoonTargetFactory.java | Class | CocoonTargetFactory class.
This factory is able to create different LogTargets specific to Cocoon
according to the following configuration syntax:
<file id="foo">
<filename>${context-key}/real-name/...</filename>
<format type="raw|pattern|extended|xml|cocoon">pattern to be used if needed</format>
<append>true|false</append>
<rotation type="revolving|unique" init="5" max="10">
<or>
<size>10000000</size>
<time>24:00:00</time>
<time>12:00:00</time>
</or>
</rotate>
</file>
Some explanations about the Elements used in the configuration:
- <filename>
-
This denotes the name of the file to log to.
|
ExtensiblePatternFormatter.java | Class | A refactoring of org.apache.log.format.PatternFormatter that
can be extended. |
Log4JConfigurator.java | Class | |
XMLCocoonLogFormatter.java | Class | A refactoring of org.apache.log.format.PatternFormatter
and org.apache.cocoon.util.log.CocoonLogFormatter for
producing XML format.
This formater formats the LogEntries according to given input types. |