Semyon Kleinerman wrote, On 27.4.2009 17:49:
> Hi Vaclav,
>
> I have another question about log4cplus implementation… I am using class
> RollingFileAppender. This class creates a set of log files like
> "filename.log", "filename.log.1", "filename.log.2" etc… I need to create
> files with a different format of file names: "filename1.log",
> "filename2.log" etc…
>
> Is there some way to implement this?
>
> p.s. I can derive RollingFileAppender class and implement append function,
> but it forces me to write a lot of cloned code, such as rollover function
> (it's not virtual) and static function rolloverFiles.. This solution
> doesn't seems to be efficient….
No, this is not currently possible. Foo.N is the traditional format of
rotating log files.
--
VH
|