ERRORLOG Option

Syntax

ERRORLOG=error-filename

The ERRORLOG option directs the compiler to write all error messages generated during the build to an error file. The compiler also displays the error messages on the screen.

Parameter

error-filename

Specifies the name of the file to which the compiler will write the error messages. The filename can be any valid MS-DOS filename. This parameter can be a full or partial path if you want the file to be written to a directory other than the Help project root directory.

Comments

If you use the ERRORLOG option, it should be the first line in the [OPTIONS] section.

The error file contains the Windows Help copyright notice and the name of the Help project file at the top of the file, followed by any build errors that occurred. Error messages are listed on separate lines. The periods representing compiler progress are included only in the screen display, not in the written file.

If the Help compiler cannot create or open the error file, it displays an error message on the screen and continues the build.

Example

The following example writes all errors during the build to the HLPBUGS.TXT file in the Help project root directory:

ERRORLOG=HLPBUGS.TXT

See Also

[OPTIONS] Section, REPORT Option, WARNING Option