Previous: , Up: Running the Service   [Contents]


3.2 Logging

The service uses GLib message logging. Domains follow component names (e.g. http-transport, datapoint, process-transport).

DEBUG and INFO are off by default so journald is not flooded on every poll. Enable them with G_MESSAGES_DEBUG:

# everything
G_MESSAGES_DEBUG=all starter-configurable-service --config …

# one or more domains (space-separated)
G_MESSAGES_DEBUG="http-transport datapoint" \
  starter-configurable-service --config …

Under systemd, set it in the unit:

[Service]
Environment=G_MESSAGES_DEBUG=all

WARNING, CRITICAL, and ERROR always appear.