Added loggin function, combines flatfile logging for webservice and
syslog.