Add unit test for rfc3164 compliant logging.
Remove pointless try-catch.
Add unit test for rfc5424 compliant logging.