Boost.UI
User Interface Boost library
|
Go to the documentation of this file.
8 #ifndef BOOST_UI_LOG_HPP
9 #define BOOST_UI_LOG_HPP
13 #ifdef BOOST_HAS_PRAGMA_ONCE
44 log_string& location(
const char* file,
int line = -1,
const char* fn = NULL);
47 #ifndef BOOST_UI_NO_CAST_FROM_ASCII
59 #ifndef BOOST_UI_NO_CAST_FROM_ASCII
63 std::ostringstream ss;
64 ss << std::boolalpha << value;
103 fatal_level, error_level, warning_level, info_level,
104 verbose_level, debug_level, trace_level
107 log(level_values level) :
log_string(m_string), m_level(level) {}
114 level_values m_level;
120 #define BOOST_UI_LOG ::boost::ui::log().location(__FILE__, __LINE__, BOOST_CURRENT_FUNCTION)
181 #endif // BOOST_UI_LOG_HPP
Helper class to convert string between UI and application logic only.
Definition: string.hpp:49
Logging stream class.
Definition: log.hpp:85
Logging stream class with output into provided uistring.
Definition: log.hpp:27
Boost C++ libraries namespace.
Definition: window.hpp:19
log_string & noquotes()
Adds quotes near string and character output values.
Definition: log.hpp:40
Shows verbose information if application was started with –verbose option.
Definition: log.hpp:156
std::basic_ostream< char, Traits > & operator<<(std::basic_ostream< char, Traits > &os, const uistring &str)
Writes string into the stream.
Definition: string_io.hpp:31
Shows information dialog in idle time.
Definition: log.hpp:148
String class and operations.
Shows error and abort immediately.
Definition: log.hpp:124
log_string & operator<<(const T &value)
Logs value.
Definition: log.hpp:61
log_string & nospaces()
Inserts white space delitimers between output values.
Definition: log.hpp:35
Shows warning dialog in idle time.
Definition: log.hpp:140
log_string & spaces(bool show=true)
Inserts white space delitimers between output values.
Definition: log.hpp:34
Shows information in debug log.
Definition: log.hpp:164
Shows information in debug log.
Definition: log.hpp:172
Shows error dialog in idle time.
Definition: log.hpp:132
log_string & operator<<(const wchar_t *value)
Logs value.
Definition: log.hpp:54
log_string & quotes(bool show=true)
Adds quotes near string and character output values.
Definition: log.hpp:39
log_string & operator<<(const char *value)
Logs value.
Definition: log.hpp:49