gandro / input-event-daemon

input event handling daemon for linux (unmaintained)
38 stars 13 forks source link

Feature Request: logging #4

Open JPT77 opened 10 years ago

JPT77 commented 10 years ago

Could you please add some logging? which says for example which key was pressed and what action taken. Here you can find an example of how to log to syslog: http://www.gnu.org/software/libc/manual/html_node/Syslog-Example.html I don't know much of C/CPP and don't want to mess with your code.

Currently I workaround the missing logging feature like this: [Keys] POWER = logger "Power button was pressed. Shutting down in one minute."; shutdown -h -P +1 RESTART = logger "Reset button was pressed. Rebooting in one minute."; shutdown -r +1

(the system doesn't have any APM or ACPI so these buttons aren't handled)

gandro commented 10 years ago

Thank you for your suggestion. However, I'm not really maintaining this project anymore. I wrote this mostly for my personal use and I'm not using it anymore.

And to be honest, I find your workaround the much better solution than hard-wiring some logger like syslog. I personally don't use syslog anymore, and there are plenty other possible logging solutions.

If you don't have any troubles with the current solution I recommend you keep using it.