automaticly hook on the log event for the server