Previous: , Up: Running the Adapter   [Contents]


3.2 Logging

The adapter uses GLib message logging. Domains follow component names (main, config, http, plugin, and the plugin’s own domain).

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

# everything
G_MESSAGES_DEBUG=all starter-configurable-adapter -c …

# one or more domains (space-separated)
G_MESSAGES_DEBUG="ariston-remotethermo http" \
  starter-configurable-adapter -c …

Under systemd, set it in the unit:

[Service]
Environment=G_MESSAGES_DEBUG=all

WARNING, CRITICAL, and ERROR always appear.

From the build tree (example with dummy):

$ LD_LIBRARY_PATH=lib/.libs \
    src/starter-configurable-adapter \
      -c examples/dummy/dummy.stca.xml \
      -p plugins/dummy/.libs