now it logs in file or in syslog depending on the configuraiton