Selaa lähdekoodia

sokol_log.h: add some Windows specific documentation

Andre Weissflog 2 vuotta sitten
vanhempi
commit
89563d3d3d
1 muutettua tiedostoa jossa 8 lisäystä ja 1 poistoa
  1. 8 1
      sokol_log.h

+ 8 - 1
sokol_log.h

@@ -42,13 +42,20 @@
         ...
         saudio_setup(&(saudio_desc){ .logger.func = slog_func });
 
-    Logging output goes to stderr and/or a platform specific logging subsystem:
+    Logging output goes to stderr and/or a platform specific logging subsystem
+    (which means that in some scenarios you might see logging messages duplicated):
 
         - Windows: stderr + OutputDebugStringA()
         - macOS/iOS/Linux: stderr + syslog()
         - Emscripten: console.info()/warn()/error()
         - Android: __android_log_write()
 
+    On Windows with sokol_app.h also note the runtime config items to make
+    stdout/stderr output visible on the console for WinMain() applications
+    via sapp_desc.win32_console_attach or sapp_desc.win32_console_create,
+    however when running in a debugger on Windows, the logging output should
+    show up on the debug output UI panel.
+
     In debug mode, a log message might look like this:
 
         [sspine][error][id:12] /Users/floh/projects/sokol/util/sokol_spine.h:3472:0: