The Battle for Wesnoth  1.19.0-dev
Namespaces | Macros | Functions | Variables
log_windows.cpp File Reference
#include <cstdio>
#include "log_windows.hpp"
#include "filesystem.hpp"
#include "log.hpp"
#include "serialization/unicode.hpp"
#include <ctime>
#include <iomanip>
#include <iostream>
#include <boost/algorithm/string/predicate.hpp>
#include <windows.h>
Include dependency graph for log_windows.cpp:

Go to the source code of this file.

Namespaces

 lg
 

Macros

#define UNICODE
 
#define WIN32_LEAN_AND_MEAN
 
#define ERR_LS   LOG_STREAM(err, log_setup)
 
#define WRN_LS   LOG_STREAM(warn, log_setup)
 
#define LOG_LS   LOG_STREAM(info, log_setup)
 
#define DBG_LS   LOG_STREAM(debug, log_setup)
 

Functions

void lg::do_console_redirect ()
 Allocates a console if needed and redirects output to CONOUT. More...
 
bool lg::using_own_console ()
 Returns true if a console was allocated by the Wesnoth process. More...
 

Variables

static lg::log_domain log_setup ("logsetup")
 

Macro Definition Documentation

◆ DBG_LS

#define DBG_LS   LOG_STREAM(debug, log_setup)

Definition at line 44 of file log_windows.cpp.

◆ ERR_LS

#define ERR_LS   LOG_STREAM(err, log_setup)

Definition at line 41 of file log_windows.cpp.

◆ LOG_LS

#define LOG_LS   LOG_STREAM(info, log_setup)

Definition at line 43 of file log_windows.cpp.

◆ UNICODE

#define UNICODE

Definition at line 33 of file log_windows.cpp.

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 36 of file log_windows.cpp.

◆ WRN_LS

#define WRN_LS   LOG_STREAM(warn, log_setup)

Definition at line 42 of file log_windows.cpp.

Variable Documentation

◆ log_setup

lg::log_domain log_setup("logsetup") ( "logsetup"  )
static