Changes between Version 1 and Version 2 of Logging


Ignore:
Timestamp:
Apr 15, 2013, 8:24:44 PM (11 years ago)
Author:
leper
Comment:

Clarify that debug_printf breaks into the debugger.

Legend:

Unmodified
Added
Removed
Modified
  • Logging

    v1 v2  
    33= Engine =
    44
    5 The engine is written in C++. Prefer these functions for logging and outputting text:
     5The [wiki:Coding_Conventions#Errorreporting coding conventions] have some information regarding logging in the engine.
    66
    7  * `debug_printf(const wchar_t* format, ...)`
     7The engine is written in C++. Prefer the following functions for logging and outputting text:
     8
    89 * `LOGMESSAGE(const wchar_t* format, ...)`
    910 * `LOGMESSAGERENDER(const wchar_t* format, ...)`
     11
     12Use these functions to report possible misconfigurations or errors that can be caused by modding:
     13
    1014 * `LOGWARNING(const wchar_t* format, ...)`
    1115 * `LOGERROR(const wchar_t* format, ...)`
    1216
     17Use `debug_printf` to indicate engine bugs, as this breaks into a debugger.
     18
     19 * `debug_printf(const wchar_t* format, ...)`
     20
    1321||= '''Function''' =||= '''Game console''' =||= '''Rendered message''' =||= '''Main log''' =||= '''Interesting log''' =||= '''std::out'''* =||= '''std::err''' =||
    14 ||`debug_printf` ||  N  ||  N  ||  N  ||  N  ||  Y  ||  N  ||
    1522||`LOGMESSAGE` ||  N  ||  N  ||  Y  ||  N  ||  N  ||  N  ||
    1623||`LOGMESSAGERENDER` ||  Y  ||  Y - green text  ||  Y  ||  N  ||  N  ||  N  ||
    1724||`LOGWARNING` ||  Y  ||  Y - yellow text  ||  Y  ||  Y  ||  Y  ||  N  ||
    1825||`LOGERROR` ||  Y  ||  Y - red text  ||  Y  ||  Y  ||  Y  ||  N  ||
     26||`debug_printf` ||  N  ||  N  ||  N  ||  N  ||  Y  ||  N  ||
    1927 `*` On Windows, the game writes debug output instead of std::out. Run the game in a debugger or use [http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx DebugView] to view it.[[BR]]
    2028