Changes between Version 6 and Version 7 of Logging
- Timestamp:
- Feb 8, 2023, 1:17:46 AM (15 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Logging
v6 v7 16 16 * `debug_printf(const char* format, ...)` 17 17 18 ||= '''Function''' =||= '''Game console''' =||= '''Rendered message''' =||= '''Main log''' =||= '''Interesting log''' =||= '''stdout''' *=||= '''stderr''' =||18 ||= '''Function''' =||= '''Game console''' =||= '''Rendered message''' =||= '''Main log''' =||= '''Interesting log''' =||= '''stdout'''^[#footnote1 (1)]^ =||= '''stderr''' =|| 19 19 ||`LOGMESSAGE` || N || N || Y || N || N || N || 20 20 ||`LOGMESSAGERENDER` || Y || Y - green text || Y || N || N || N || … … 22 22 ||`LOGERROR` || Y || Y - red text || Y || Y || Y || N || 23 23 ||`debug_printf` || N || N || N || N || Y || N || 24 `*` 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]]25 24 26 25 '''Note:''' to use the `LOG*` functions, you must include [source:/ps/trunk/source/ps/CLogger.h ps/CLogger.h].[[BR]] … … 36 35 * `error(message)` 37 36 38 ||= '''Function''' =||= '''Game console''' =||= '''Rendered message''' =||= '''Main log''' =||= '''Interesting log''' =||= '''stdout''' *=||= '''stderr''' =||37 ||= '''Function''' =||= '''Game console''' =||= '''Rendered message''' =||= '''Main log''' =||= '''Interesting log''' =||= '''stdout'''^[#footnote1 (1)]^ =||= '''stderr''' =|| 39 38 ||`print` || N || N || N || N || Y || N || 40 39 ||`console.write` || Y || N || N || N || N || N || … … 42 41 ||`warn` || Y || Y - yellow text || Y || Y || Y || N || 43 42 ||`error` || Y || Y - red text || Y || Y || Y || N || 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]] 43 44 45 {{{#!sh 46 # Print a debug message with several arguments. 47 warn(uneval(['string', arg1, arg2])) 48 }}} 45 49 46 50 = Atlas UI = … … 53 57 * `wxLogError(const char* formatString, ...)` 54 58 59 ---- 60 61 [=#footnote1 ^(1)^] 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]]