Early initialize logger if logging enabled