Simple wostream logging class (with custom stream manipulators)
问题 I've been reading tons of questions, articles, and documentation, but I've not found a solution to my problem. I'd like to create a simple class for use in debugging. The end result of which would allow me to do something like this: logger << error << L"This is a problem!" << endl; logger << warning << L"This might be a problem!" << endl; logger << info << L"This isn't a problem but I thought you should know about it" << endl; With the idea that within the logger class I can toggle whether or