file_appender rotation

0 views
Skip to first unread message

odi

unread,
Apr 8, 2009, 5:49:27 AM4/8/09
to Log4erl
There's another interesting thing that I've seen:
when I run profiler on code that was only logging messages I noticed
it spent majority of time in io_format functions but it also spent
some time in file:file_name_1. I suppose it happens during rotation
when file's size is checked - it would be a nice feature if user was
able to turn rotation off - for example by setting value in
configuration file to 0.
regards
Kuba

Ahmed Ali

unread,
Apr 8, 2009, 7:37:43 AM4/8/09
to log...@googlegroups.com
Ahha. I see it is useful for large files. I'll implement this in the
next release. If you're in a hurry, let me know. This shouldn't be
very difficult.

Regrads,

Ahemd

odi

unread,
Apr 8, 2009, 7:50:24 AM4/8/09
to Log4erl
It is useful in each system that logs a lot of messages - during each
check you have to construct file's name with
File = Dir ++ "/" ++ Fname ++ "." ++ Suf,
which isn't especially effective (maybe store file's name in
file_appender state), and then you also have to check file's size;)

On 8 Kwi, 13:37, Ahmed Ali <ahmed.naw...@gmail.com> wrote:
> Ahha. I see it is useful for large files. I'll implement this in the
> next release. If you're in a hurry, let me know. This shouldn't be
> very difficult.
>
> Regrads,
>
> Ahemd
>

Ahmed Ali

unread,
Apr 8, 2009, 7:54:28 AM4/8/09
to log...@googlegroups.com
I'll do this. I like your comments as it helps to optimize log4erl. I
initially concentrate on functionality and then performance. Maybe
it's not the best way.

Anyways, please keep your suggestions coming.

Ahmed
Reply all
Reply to author
Forward
0 new messages