Logging error to a file in FSM

Francesco Cesarini <>
Wed Jun 4 19:20:47 CEST 2003


I would not hard code the Debug Options flag. I would instead use the 
sys module and turn the debugging on once the fsm has been started by 
the supervisor.

Regards,
Francesco

Inswitch Solutions - Erlang Evaluation wrote:

>  
> Is it
> {ok, Pid} = gen_fsm:start(?MODULE, [Mod, Board, Trunk, Ch], 
> [{debug,[{log_to_file, "log.txt"}]}]),
>  
> the right way to log errors to "log.txt" file using FSM ?
>  
>  
> Thanks,
> Eduardo Figoli
>  






More information about the erlang-questions mailing list