[erlang-questions] SASL

Siri Hansen erlangsiri@REDACTED
Wed Dec 7 10:54:46 CET 2011


sorry - forgot to copy the list...

2011/12/7 Siri Hansen <erlangsiri@REDACTED>

> Hi Emeka!
>
> First of all, to check if the application environment variables are set
> for sasl, you can call application:get_all_env(sasl). This will show if the
> problem is that the variables are not set at all, or if there might be
> something else. Note that the sasl application must be started here. Also,
> the error logger directory should exist before starting sasl.
>
> I'm guessing that your real problem is that werl can not read the
> directory "/home/joe/error_logs". Try to do
> file:list_dir("/home/joe/error_logs") to verify this. I think you need to
> change the value to "c:/cygwin/home/joe/error_logs".
>
> Regards
> /siri
>
> 2011/12/6 emeka okafor <emeka_1978@REDACTED>
>
>> hi everybody,
>> erlang newbie here. I am having a hard time telling my erlang application
>> to pick up the sasl configuration that i pass through command line
>> arguments.
>> I created a release and am able to start the application with "*bin/werl
>>  -AppName -config sasl.config*. The config i am using is from joe's book
>> "programming erlang":
>>
>> *%% rotating log and minimal tty*
>> *[{sasl, [*
>> *{sasl_error_logger, false},*
>> *%% define the parameters of the rotating log*
>> *%% the log file directory*
>> *{error_logger_mf_dir,"/home/joe/error_logs" },*
>> *%% # bytes per logfile*
>> *{error_logger_mf_maxbytes,10485760}, % 10 MB*
>> *%% maximum number of logfiles*
>> *{error_logger_mf_maxfiles, 10}*
>> *]}].  *
>> *
>> *
>> No directory is created and if i create one then no logs are written in
>> it; when i excute sys:get_status(error_logger), i can see that
>> "error_logger_mf_dir" is not listed.
>> What am i doing wrong?
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20111207/1a538d26/attachment.htm>


More information about the erlang-questions mailing list