sorry - forgot to copy the list...<br><br><div class="gmail_quote">2011/12/7 Siri Hansen <span dir="ltr"><<a href="mailto:erlangsiri@gmail.com">erlangsiri@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Emeka!<div><br></div><div>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.</div>
<div><br></div><div>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".</div>
<div><br></div><div>Regards</div><div>/siri</div><div><br><div class="gmail_quote">2011/12/6 emeka okafor <span dir="ltr"><<a href="mailto:emeka_1978@yahoo.com" target="_blank">emeka_1978@yahoo.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="h5">
<div><div style="color:#000;background-color:#fff;font-family:times new roman,new york,times,serif;font-size:12pt"><div style="font-family:'times new roman','new york',times,serif;font-size:12pt">hi everybody,</div>
<div style="font-family:'times new roman','new york',times,serif;font-size:12pt">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.</div>
<div style="font-family:'times new roman','new york',times,serif;font-size:12pt">I created a release and am able to start the application with "<b>bin/werl -AppName -config sasl.config</b>. The config i am using is from joe's book "programming erlang":</div>
<div style="font-family:'times new roman','new york',times,serif;font-size:12pt"><br></div><div><font face="'times new roman', 'new york', times, serif"><b>%% rotating log and
minimal tty</b></font></div><div><font face="'times new roman', 'new york', times, serif"><b>[{sasl, [</b></font></div><div><font face="'times new roman', 'new york', times, serif"><b>{sasl_error_logger, false},</b></font></div>
<div><font face="'times new roman', 'new york', times, serif"><b>%% define the parameters of the rotating log</b></font></div><div><font face="'times new roman', 'new york', times, serif"><b>%% the log file directory</b></font></div>
<div><font face="'times new roman', 'new york', times, serif"><b>{error_logger_mf_dir,"/home/joe/error_logs" },</b></font></div><div><font face="'times new roman', 'new york', times, serif"><b>%% # bytes per logfile</b></font></div>
<div><font face="'times new roman', 'new york', times,
serif"><b>{error_logger_mf_maxbytes,10485760}, % 10 MB</b></font></div><div><font face="'times new roman', 'new york', times, serif"><b>%% maximum number of logfiles</b></font></div><div><font face="'times new roman', 'new york', times, serif"><b>{error_logger_mf_maxfiles, 10}</b></font></div>
<div><b><font face="'times new roman', 'new york', times, serif">]}].</font><font face="'times new roman', 'new york', times, serif" size="3"> </font></b></div><div><b><font face="'times new roman', 'new york', times, serif" size="3"><br>
</font></b></div><div><font face="'times new roman', 'new york', times, serif">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.</font></div>
<div><font face="'times new roman', 'new york', times, serif">What am i doing wrong?</font></div></div></div><br></div></div>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br>