Thispatch adds global log function. Each log message is writed on the stderr and is sent to the default syslog server. These two actions are done according the configuration.