Hi,<br><br>I want to use disk_log with an external format for application info logging. I was experimenting with disk_log in the console and I found the following behavior:<br><br>On an opened (opened via the open() call) log , once any of the functions in the module return any, and I mean ANY error, the log gets closed and is no longer available.<br>
All subsequent calls return {error,no_such_log}.<br><br>Even an error like "** exception error: undefined function disk_log:xxxxx/2" results in the same behavior.<br><br>I wanted to open a single log at startup and use it for logging in all the other functions. Now, this may not be right way to do it, since if any of the logging calls return an error, the log gets effectively closed.<br>
<br>Is there any explanation for this? Or is there a better way to implement application error/info logging?<br><br>  Amit<br><br><br>