Giacomo,

On 20/01/06, Giacomo Pati <[EMAIL PROTECTED]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Fri, 20 Jan 2006, Jakob Fix wrote:
>
> > Googling for "stream target cocoon", at
> > http://www.planetcocoon.com/tags/210 I found  "Re: svn commit: r159493
> > - cocoon/trunk/src/webapp/WEB-INF/logkit.xconf"
> >
> > which contained the line
> >
> > +    <factory type="stream"
> > class="org.apache.avalon.excalibur.logger.factory.StreamTargetFactory"/>
> >
> > which I then used in my <factories> section.
> >
> > Then I cut down the <targets> section to this:
> >
> > <targets>
> >  <stream id="console"/>
> > </targets>
> >
> > Again, I deduced from looking at the factory elements' type attribute
> > that they probably woud be the namesake for the target element name. I
> > gave it the id attribute value "console" because you alluded to it in
> > your previous post.  And then I replaced, as you indicated, all id-ref
> > values with "console".  Also, as I mentioned, the error level is
> > pushed up to FATAL_ERROR.
> >
> > Thanks for the pointer to the stream factory though.
>
> Your factory setting is ok. In the <targets> you should have:
>
>
>      <stream id="console">
>        <stream>System.out</stream>
>        <format type="extended">%5.5{priority} %5.5{time} [%8.8{category}] 
> (%{context}): %{message}\n</format>
>      </stream>
>
> And in the <categories>
>
>      <category log-level="FATAL_ERROR" name="">
>        <log-target id-ref="console"/>
>      </category>
>
> HTH

yes it does.  Thanks for this additional information.
--
cheers,
Jakob.

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