Redirect errors and warnings

By default, esql directs error and warning messages it generates to standard output. If you want the errors and warnings to be put into a file, use the -log option with the file name.

For example, the following esql command compiles the program demo1.ec and sends the errors to the err.out file:
esql -log err.out -o demorun demo1.ec

This option only affects the error warnings that the preprocessor generates. The warnings from the compile and link stages still go to the standard error output, which is stderr on UNIX™, for example.