Template for a custom output stream.