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>
Showing
- src/libinput-private.h 7 additions, 0 deletionssrc/libinput-private.h
- src/libinput-util.c 0 additions, 20 deletionssrc/libinput-util.c
- src/libinput.c 62 additions, 0 deletionssrc/libinput.c
- src/libinput.h 76 additions, 0 deletionssrc/libinput.h
- src/path.c 2 additions, 2 deletionssrc/path.c
- test/Makefile.am 6 additions, 1 deletiontest/Makefile.am
- test/log.c 169 additions, 0 deletionstest/log.c
Loading
Please register or sign in to comment