Ensure logger is string