The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 <boost/algorithm/string/predicate.hpp>
#include <boost/noncopyable.hpp>
#include <boost/scoped_ptr.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...
 
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

#define DBG_LS   LOG_STREAM(debug, log_setup)

Definition at line 44 of file log_windows.cpp.

#define ERR_LS   LOG_STREAM(err, log_setup)

Definition at line 41 of file log_windows.cpp.

Referenced by lg::finish_log_file_setup().

#define LOG_LS   LOG_STREAM(info, log_setup)

Definition at line 43 of file log_windows.cpp.

#define UNICODE

Definition at line 33 of file log_windows.cpp.

#define WIN32_LEAN_AND_MEAN

Definition at line 36 of file log_windows.cpp.

#define WRN_LS   LOG_STREAM(warn, log_setup)

Definition at line 42 of file log_windows.cpp.

Variable Documentation

lg::log_domain log_setup("logsetup")
static