Refactored LogHandler to use new generated codec classes and DL4J
protocol