Replace magic string with attribute constant in initialize_logging