Changes between Version 5 and Version 6 of Logging


Ignore:
Timestamp:
Feb 17, 2015, 11:17:02 PM (9 years ago)
Author:
historic_bruno
Comment:

Updates for r16332, mentions wx* functions for Atlas

Legend:

Unmodified
Added
Removed
Modified
  • Logging

    v5 v6  
    1414 * `LOGWARNING(const char* format, ...)`
    1515 * `LOGERROR(const char* format, ...)`
    16  * `debug_printf(const wchar_t* format, ...)`
     16 * `debug_printf(const char* format, ...)`
    1717
    1818||= '''Function''' =||= '''Game console''' =||= '''Rendered message''' =||= '''Main log''' =||= '''Interesting log''' =||= '''stdout'''* =||= '''stderr''' =||
     
    2525
    2626'''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 }}}
    3427
    3528= Scripts =
     
    5043||`error` ||  Y  ||  Y - red text  ||  Y  ||  Y  ||  Y  ||  N  ||
    5144 `*` 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
     48In 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