@@ -687,12 +687,13 @@ Command line equivalent (takes precedence): `--[no-]dump-logs` flag
687687
688688In the case of *non-interleaved* output and *more than one* target package,
689689Stack sends the build output from GHC for each target package to a log file,
690- unless an error occurs. For further information, see the
691- [`stack build --[no-]interleaved-output` flag](build_command.md#the-stack-build-- -no-interleaved-output-flag)
690+ unless an error occurs that prevents that . For further information, see the
691+ [`stack build --[no-]interleaved-output` flag](build_command.md#-no-interleaved-output-flag)
692692documentation.
693693
694694The value of the `dump-logs` key controls what, if any, log file content is sent
695- ('dumped') to the console at the end of the build. Possible values are :
695+ ('dumped') to the standard error output stream of the console at the end of the
696+ build. Possible values are :
696697
697698~~~yaml
698699dump-logs : none # don't dump the content of any log files
@@ -703,6 +704,15 @@ dump-logs: all # dump all of the content of log files
703704At the command line, `--no-dump-logs` is equivalent to `dump-logs : none` and
704705`--dump-logs` is equivalent to `dump-logs : all`.
705706
707+ If GHC reports an error during the build and a log file is created, that build
708+ output will be included in the log file. Stack will also report errors during
709+ building to the standard error output stream. That stream can be piped to a
710+ file. For example, for a file named `stderr.log` :
711+
712+ ~~~text
713+ stack --no-dump-logs --color always build --no-interleaved-output 2> stderr.log
714+ ~~~
715+
706716### extra-include-dirs
707717
708718Default: ` [] `
0 commit comments