[erlang-questions] Question about erlang.log

Rob Charlton rob@REDACTED
Wed Nov 25 18:24:29 CET 2009


Wael Ebrahim wrote:
> I have a question about Erlang log. 
>  
> I have a target system and I want to increase the size and number of log
> files named erlang.log.1 ....erlang.log.5 in the directory ROOT_DIR/log/
>
>  
> The default values are 5 files each one is 100K , but I had a very big
> crash that was repeated multiple times causing these files to be
> overwritten, and I couldn't reach its start.
>  
> I know I can use sasl for this kind of monitoring, but it doesn't log
> the user input on the erlang shell as the erlang.log.x does.
> Also sasl doesn't log any output except from standard applications, or
> error_logger.
>  
> Any ideas about increasing size of these files "erlang.log.x" ???
>  
> Thanks in advance,
>
> Wael Ebrahim
>
>
>   
Before starting run_erl, you can set these environment variables:

export RUN_ERL_LOG_GENERATIONS=10
export RUN_ERL_LOG_MAXSIZE=1000000

see http://www.erlang.org/doc/man/run_erl.html for more details

Cheers

Rob

-- 
Erlang Training and Consulting Ltd
www.erlang-consulting.com



More information about the erlang-questions mailing list