The Battle for Wesnoth  1.15.0+dev
Namespaces | Macros | Functions | Variables
log_windows.cpp File Reference
#include <cstdio>
#include "log_windows.hpp"
#include "filesystem.hpp"
#include "libc_error.hpp"
#include "log.hpp"
#include "serialization/unicode.hpp"
#include <ctime>
#include <iomanip>
#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

std::string lg::log_file_path ()
 Returns the path to the current log file. More...
 
void lg::early_log_file_setup ()
 Sets up the initial temporary log file. More...
 
void lg::enable_native_console_output ()
 Switches to using a native console instead of log file redirection. More...
 
bool lg::using_own_console ()
 Returns true if a console was allocated by the Wesnoth process. More...
 
void lg::finish_log_file_setup ()
 Relocates the stdout+stderr log file to the user data directory. 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 43 of file log_windows.cpp.

◆ ERR_LS

#define ERR_LS   LOG_STREAM(err, log_setup)

Definition at line 40 of file log_windows.cpp.

Referenced by lg::finish_log_file_setup().

◆ LOG_LS

#define LOG_LS   LOG_STREAM(info, log_setup)

Definition at line 42 of file log_windows.cpp.

◆ UNICODE

#define UNICODE

Definition at line 32 of file log_windows.cpp.

◆ WIN32_LEAN_AND_MEAN

#define WIN32_LEAN_AND_MEAN

Definition at line 35 of file log_windows.cpp.

◆ WRN_LS

#define WRN_LS   LOG_STREAM(warn, log_setup)

Definition at line 41 of file log_windows.cpp.

Variable Documentation

◆ log_setup

lg::log_domain log_setup("logsetup")
static