This class can be used to redirect the standard output streams (technically any output stream but obviously redirecting the standard ones will be the most useful) to the WinDbg output window.
Very simple in concept and in implementation. Tested and working as intended. Just figured this would be useful for the people like me who program in C++ and are annoyed by having to use WinDbg's C-style logging function (which is as ugly and evil as printf).
Header-only library, Boost dependency, WinDBG SDK dependency (duh). Implemented using templates so it supports both character types (char and wchar_t) currently in the C++ standard.
Usage Example:
Release History:Code:// Redirect standard output streams to WinDbg static Cypher::WinDbgLogger<char>::Stream NarrowStream; static Cypher::WinDbgLogger<wchar_t>::Stream WideStream; NarrowStream.open(Cypher::WinDbgLogger<char>()); std::cout.rdbuf(NarrowStream.rdbuf()); WideStream.open(Cypher::WinDbgLogger<wchar_t>()); std::wcout.rdbuf(WideStream.rdbuf());
v20091015a
Initial version, working as intended.