Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: logging #4

Open
JPT77 opened this issue Nov 16, 2014 · 1 comment
Open

Feature Request: logging #4

JPT77 opened this issue Nov 16, 2014 · 1 comment

Comments

@JPT77
Copy link

JPT77 commented Nov 16, 2014

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
Copy link
Owner

gandro commented Nov 16, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants