4stuiw902 at sneakemail.com
2007-May-29 04:05 UTC
[Nut-upsuser] Request: Ability to turn down the verbosity in logging
First of all thanks to everyone for creating NUT. It has been really useful since I replaced my home UPS last month. However, the I attached some Cacti logging to the NUT server to get a sense of my power load. I've been going through my computers to try to reduce the amount of electricity they're using. I noticed that NUT itself keeps the disks from spinning down in the NUT server because it keeps logging the user logins and logouts to the syslog. I'd like to request that the common logging facility be amended to include levels of notification so I can choose to only receive errors or all information as it is currently.
Arjen de Korte
2007-May-29 10:56 UTC
[Nut-upsuser] Request: Ability to turn down the verbosity in logging
> I noticed that NUT itself keeps the disks from spinning down in the NUT > server because it keeps logging the user logins and logouts to the syslog. > > I'd like to request that the common logging facility be amended to include > levels of notification so I can choose to only receive errors or all > information as it is currently.We already have that. :-) Clients logging in and out are logged at priority LOG_INFO, which is the second lowest level. We have lowered the loglevel to LOG_DEBUG for logging out in the upcoming release of NUT. So if you set the syslog to only log LOG_ERR or higher, you won't be bothered by these messages anymore. We use various priorities for logging information throughout the sources, so there is no way you can define only one level like you suggest. And we're not going to duplicate the functionality from syslogd to only log information above a certain priority. Note that you can define the facility through --with-logfacility=FACILITY at compilation time. Best regards, Arjen -- Eindhoven - The Netherlands Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57