Greetings, oh Mighty All!

The question is about logging. Itīs pretty stupid, but I didnīt find an answer 
in first half hour and I need it as fast as possible. 
This is my kernel.xml:

<!--///////////////////////Sources////////////////////////-->
<?xml version="1.0" encoding="ISO-8859-1"?>

<kernel>

   <logging priority="INFO" name="kernel">
      <category name="/logger" priority="WARN"/>
   </logging>

   <repository>
     <cache>./repository</cache>
     <hosts>
       <host path="http://dpml.net/"/>
       <host path="http://www.ibiblio.org/maven/"/>
     </hosts>
   </repository>

</kernel>
<!--///////////////////////End of Sources////////////////////////-->

What do I have to do to make it put the logging info into file (I need all 
that stuff that it shows on the screen: getLogger().info(...), 
getLogger().debug(...), etc)?
Iīve tried this stuff (as it is written in 
http://avalon.apache.org/products/runtime/system/logging/logkit/examples/logkit.html):

<!--///////////////////////Sources////////////////////////-->
<?xml version="1.0" encoding="ISO-8859-1"?>

<kernel>

   <logging>
        <targets>
                <file id="simple">
                        <filename>simple.log</filename>
                        <append>true</append>
                        <rotation type="revolving" init="1" max="10">
                                <size>100k</size>
                        </rotation>
                </file>
        </targets>

        <categories priority="INFO" target="simple">
        <categories name="kernel">
                <category name="/logger" priority="WARN"/>
        </categories>
        </categories>
   </logging>

   <repository>
     <cache>./repository</cache>
     <hosts>
       <host path="http://dpml.net/"/>
       <host path="http://www.ibiblio.org/maven/"/>
     </hosts>
   </repository>

</kernel>
<!--///////////////////////End of Sources////////////////////////-->

But it didnīt help :(


Sincerely
Igor

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to