Changes between Version 5 and Version 6 of Logging
- Timestamp:
- Feb 17, 2015, 11:17:02 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Logging
v5 v6 14 14 * `LOGWARNING(const char* format, ...)` 15 15 * `LOGERROR(const char* format, ...)` 16 * `debug_printf(const wchar_t* format, ...)`16 * `debug_printf(const char* format, ...)` 17 17 18 18 ||= '''Function''' =||= '''Game console''' =||= '''Rendered message''' =||= '''Main log''' =||= '''Interesting log''' =||= '''stdout'''* =||= '''stderr''' =|| … … 25 25 26 26 '''Note:''' to use the `LOG*` functions, you must include [source:/ps/trunk/source/ps/CLogger.h ps/CLogger.h].[[BR]] 27 '''Note:''' these functions accept standard printf formatting and arguments. debug_printf uses wide characters, which requires prefixing string literals with 'L':28 {{{29 #!c++30 std::string name;31 // ... some code here ...32 debug_printf(L"This is not a very interesting message, %hs\n", name.c_str());33 }}}34 27 35 28 = Scripts = … … 50 43 ||`error` || Y || Y - red text || Y || Y || Y || N || 51 44 `*` On Windows, the game writes debug output instead of stdout. Run the game in a debugger or use [http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx DebugView] to view it.[[BR]] 45 46 = Atlas UI = 47 48 In Atlas UI, wxWidgets provides several [http://docs.wxwidgets.org/trunk/overview_log.html logging functions]. 49 * `wxLogDebug(const char* formatString, ...)` - Logs to terminal/debug output only. 50 '''Note:''' by default, the following functions only display a message box to the user: 51 * `wxLogMessage(const char* formatString, ...)` 52 * `wxLogWarning(const char* formatString, ...)` 53 * `wxLogError(const char* formatString, ...)` 54