The commandline tools are set up to use a consistent set of configuration options for logging.
Commandline tools all obey the following rules of thumb:
- Output from a tool is sent to standard output. For example, an error message produced by a compiler or validator is expected output and will be output to standard output.
- Informational output is sent to standard error. For example, an attempt to compile a missing or unreadable would result in output to standard error. Logging-oriented information is also set to standard error.
- No other output is generated except in the case of the standalone PXE kernel (pxe).
In all cases, the -q ("quiet"), -v ("verbose"), and -vv ("very verbose") flags control the amount of output generated on the console.
Independent of any commandline flags, the PXE kernel logs to the file PXE_HOME/logs/kernel.log according to the configuration in PXE_HOME/etc/log4j.properties.