>In my error manager I have a code that logs (into an error log file) the Stack info. The code executes ASTACKINFO(aStackArray) and then stores the content of the array aStackArray into the log file.
>But I have NEVER found this information to be helpful in troubleshooting any problem.
>
>What "good" data do you recommend to log into the Log file (at run-time, at customer) in order to - later - be able to troubleshooting the problem?
You may also log the last SQL command that was executed, the main application property values. For Web application, the IP used, the language used, the server name, the environment, etc. would turn out to be useful.