iostream - STL C++

wclog

Declaration

extern wostream wclog;

Description

The wclog object is an instantiation of the output stream wostream that controls the stream buffer and is used to output wide-character log messages.

Header Include

#include <iostream>

Example

#include <iostream>

int main() {
	using namespace std;

	// We can send any content to wclog, just like wcout
	wclog << L"XoaX.net" << endl;

	// However, we usually reserve wclog for logging messages
	wclog << L"Something that we want to log" << endl;

	// Keep the window open
	cin.get();
	return 0;
}

Output

wclog Output
 

© 2007–2024 XoaX.net LLC. All rights reserved.