Fixed standard logging if using custom logger