How do I programatically set log level in syslog-ng?
So for I have set the log level by editing /etc/syslog-ng/syslog-ng.conf and restarting the syslog-ng service.
service syslog-ng restart.
I have a php app and I want users to be able to set the log level from the web UI.
How to I programatically set the log level for syslog-ng using either php/linux?
I've seen something about setlogmask($mask_priority) but I can't see how I can use this using php/linux.
Thanks