Changed log system to a improved one, with syslog support