Files
openstreetmap-mod_tile-pyth…/includes
David Hummel a14924a999 Logging Improvements
* Using [`GLib Logging Framework`](https://developer.gnome.org/programming-guidelines/stable/logging.html.en) for logging
  * Created new `g_logger` function for logging
    * Outputs to `stdout`/`stderr` only when running in `foreground`
      * `stderr` for `message`, `warning`, `critical` & `error` levels
      * `stdout` for `debug` & `info` levels
        * Use `G_MESSAGES_DEBUG=all` environment to enable `debug` to print
    * Otherwise, output will be to `syslog` or `systemd journal` (when appropriate)
* Standardized usage of `{LOG_PRIORITY}: ` prefix in log messages
  * Only when using `syslog`, otherwise `GLib Logging` will take care of it
* Changed `fprintf(stderr`, `printf` & `perror` calls to `g_logger` calls
  * You might want to check them out closely to make sure I chose the right levels
  * No changes to `logging/output` were made to "`foreground`" programs (I.E. `render_*`)
* Changed `0`,`1` to `no_argument`,`required_argument` in `getopt_long`'s `long_options`
  * Fixed `renderd`'s `foreground` opt (should be `no_argument` [0] rather than `reguired_argument` [1])
* Basic test for `mod_tile` module
* ~~Extended `renderd` log priority onto Mapnik's logger~~
2021-07-28 14:46:50 +00:00
..
2021-02-15 19:20:30 +01:00
2021-02-15 19:20:30 +01:00
2021-07-28 14:46:50 +00:00
2021-02-15 19:20:30 +01:00
2021-02-15 19:20:30 +01:00
2021-02-15 19:20:30 +01:00
2021-02-15 19:20:30 +01:00
2021-02-15 19:20:30 +01:00
2021-02-15 19:20:30 +01:00
2021-07-28 14:46:50 +00:00
2021-02-15 19:20:30 +01:00