diff options
| author | Andre Weissflog <floooh@gmail.com> | 2025-03-14 18:29:42 +0100 |
|---|---|---|
| committer | Andre Weissflog <floooh@gmail.com> | 2025-03-14 18:29:42 +0100 |
| commit | 7b32d11bea694941f4f78bd6fab39db47eb49766 (patch) | |
| tree | ebb672523436481052927ef6615ff249c2a1fefa /sokol_log.h | |
| parent | 34a6cd9f9b2bdb3b4da89e99c117ab125b8c2e27 (diff) | |
sokol_log.h: on Linux and macOS don't log to syslog (only stderr)
Diffstat (limited to 'sokol_log.h')
| -rw-r--r-- | sokol_log.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sokol_log.h b/sokol_log.h index 10a70c65..0eef3a98 100644 --- a/sokol_log.h +++ b/sokol_log.h @@ -326,15 +326,6 @@ SOKOL_API_IMPL void slog_func(const char* tag, uint32_t log_level, uint32_t log_ __android_log_write(prio, "SOKOL", line_buf); #elif defined(_SLOG_EMSCRIPTEN) slog_js_log(log_level, line_buf); - #elif defined(_SLOG_LINUX) || defined(_SLOG_APPLE) - int prio; - switch (log_level) { - case 0: prio = LOG_CRIT; break; - case 1: prio = LOG_ERR; break; - case 2: prio = LOG_WARNING; break; - default: prio = LOG_INFO; break; - } - syslog(prio, "%s", line_buf); #endif if (0 == log_level) { abort(); |