[erlang-questions] Erlang server and log rotating

Ngoc Dao ngocdaothanh@REDACTED
Tue Dec 22 03:00:44 CET 2009


Have you tried?
http://github.com/ahmednawras/log4erl


On Tue, Dec 22, 2009 at 1:09 AM, Max Lapshin <max.lapshin@REDACTED> wrote:
> Hi. As erlyvideo is growing (bwt, it has moved to repo
> http://github.com/erlyvideo/erlyvideo and soon will work site
> http://erlyvideo.org), I meet new problems:
> logs and logrotating.
>
> I've been using runit for some time and found it very convenient: no
> need to daemonize program, its output is logged to some directory with
> automatic logrotation.
> It is very important issue: using runit, no need to setup logrotate
> and restart program: runit logger will rotate logs itself.
>
> I have not found, how to do it with erlang otp. How to rotate logs
> per-size and delete old ones?
>
> Second problem is, that I want to have not otp-style log, I need to
> log in apache-style. What is good practice to have logger, separate
> from error_logger?


More information about the erlang-questions mailing list