[#BloombergLP-bsls-OutputRedirector-enable] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsls.adoc[bsls]::xref:BloombergLP/bsls/OutputRedirector.adoc[OutputRedirector]::enable :relfileprefix: ../../../ :mrdocs: If the `Stream` specified at construction was `e_STDOUT_STREAM`, redirect `stdout` to a temporary file. If the `Stream` specified at construction was `e_STDERR_STREAM`, redirect `stderr` to a temporary file. The temporary file to which the stream is redirected will be created the first time `enable` is called, and will be deleted when this object is destroyed. If `enable` fails to redirect either `stdout` or `stderr` it will end the program by calling `std::abort`. == Synopsis Declared in `<bsls_outputredirector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void enable(); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#