Skip to content

libweston: Add logging support for libseat launcher

Marius Vlad requested to merge mvlad/weston:wip/mvlad/log-libseat into main

libweston: Add logging support for libseat

The libseat-luncher should enable logging before opening the seat. Similar to what happens in wlroots, we do the same here. We use weston's logging infrastructure and use the log_scope to append any logging data from libseat. Along side this patch we install a custom log handler.

With it, this patch extracts a logger helper from compositor's main to libweston, in order to be used into libseat-launcher as well, with the purpose of generating a time stamp.

Further more, this patch enables logging only if it was set-up using SEATD_LOGLEVEL env variable. Possible options are: info, debug and error, with anything else than that being discarded.

Prompted by https://lists.sr.ht/~kennylevinsen/seatd-devel/patches/30039

Signed-off-by: Marius Vlad marius.vlad@collabora.com

Merge request reports

Loading