|
mod_tile 0.9.1
Renders map tiles with Mapnik and serves them using Apache HTTP Server
|
#include <glib.h>#include <stdarg.h>#include <stdio.h>#include <stdlib.h>#include <syslog.h>Macros | |
| #define | _GNU_SOURCE 1 |
| #define | G_LOG_USE_STRUCTURED 1 |
Functions | |
| const char * | g_logger_level_name (int log_level) |
| Convert a GLib log level flag into a human-readable uppercase label. | |
| void | g_logger (int log_level, const char *format,...) |
| Format and route a log message to stdout/stderr, systemd-journald, or syslog. | |
Variables | |
| int | foreground = 0 |
| Execution mode flag indicating whether the daemon runs in the foreground. | |
| #define _GNU_SOURCE 1 |
| #define G_LOG_USE_STRUCTURED 1 |
| void g_logger | ( | int | log_level, |
| const char * | format, | ||
| ... ) |
Format and route a log message to stdout/stderr, systemd-journald, or syslog.
Selects the logging backend automatically based on runtime environment:
Unlike default GLib fatal error handling, G_LOG_LEVEL_ERROR messages are logged without terminating the process, and G_LOG_LEVEL_INFO messages are emitted unconditionally without requiring G_MESSAGES_DEBUG.
| log_level | GLib log severity level (GLogLevelFlags). |
| format | printf-style format string. |
| ... | Variadic arguments corresponding to format. |
| const char * g_logger_level_name | ( | int | log_level | ) |
Convert a GLib log level flag into a human-readable uppercase label.
| log_level | GLib log level (e.g., G_LOG_LEVEL_ERROR, G_LOG_LEVEL_INFO). |
| int foreground = 0 |
Execution mode flag indicating whether the daemon runs in the foreground.
When set to 1, log output is directed to standard streams (stdout/stderr) via GLib writers rather than systemd-journald or syslog.