Hi Tobias Mantsch,
I have been looking for the same kind of
inforamtion, but not able to find it.
So what i did to write a header every time logging
starts and writing to a new rolled over file is,
extended the RollingFileAppender class and overridded
some methods to achieve this. It is working fine. May
be u can try this.
Can someone give us some examples on the
setHeader(...) method's
usages.
Regards,
Krish
--- Tobias Mantsch <[EMAIL PROTECTED]> wrote:
> Hi all,
>
>
>
> Is it possible to set a standard header that is
> written every time
> logging starts? I did not find anything on the
> internet or the log4j
> documentation concerning this point. I remember
> having done this 3 years
> ago with log4j but I can't really remember how I did
> it and I don't have
> those sources anymore. In 1.3 API I found a method
> setHeader(...), but
> there is no such method in log4j 1.2.12 and I don't
> want to use 1.3
> because it is not in stable release state and I'm
> using log4j in a live
> production system where I cannot afford to use alpha
> or beta releases.
>
> So is there a way to write standard headers to log
> files in 1.2 and if
> there is, how is it done?
>
>
>
> Best regards
>
> Tobias Mantsch
>
>
__________________________________________
Yahoo! DSL Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]