Logging implementation for custom UDP formatting