[erlang-questions] SASL

eigenfunction emeka_1978@REDACTED
Thu Dec 8 09:22:58 CET 2011


You guys save my life. Removing the extension ".config" did the trick.
Thanks a lot.


On 7 Dez., 16:12, Robert Raschke <rtrli...@REDACTED> wrote:
> On Tue, Dec 6, 2011 at 6:47 PM, emeka okafor <emeka_1...@REDACTED> wrote:
> > 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?
>
> The -config option expects a name without the .config extension, as that
> gets added by the system. So, try simply -config sasl . And yes, the
> directory for the log must pre-exist.
>
> Robby
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questi...@REDACTED://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list