Add a customizable log handler
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 12 Feb 2014 04:20:18 +0000 (14:20 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 18 Feb 2014 22:35:25 +0000 (08:35 +1000)
commit3a07b03df5b78fc4a941db5154bef3d9fbf5a0e4
tree72e0d57cb795f8b28d0c82952992a4e4ab20ac97
parent803f254343fe490d73f61404c7a0bf2d74a45194
Add a customizable log handler

The previous log handler wasn't actually hooked up to anything. Add a public
API for the log handler with priority filtering, defaulting to priority
'error' and stderr as output stream.

And to keep the diff down and convenience up, provide a few simple wrappers
for logging. The generic is log_msg(), but let's use log_info, log_error, etc.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com>
src/libinput-private.h
src/libinput-util.c
src/libinput.c
src/libinput.h
src/path.c
test/Makefile.am
test/log.c [new file with mode: 0644]