def log(logger, level, message):
if logger.parent.name != '<STR_LIT:root>':<EOL><INDENT>logger.log(level, message)<EOL><DEDENT>else:<EOL><INDENT>print(message, file=sys.stderr)<EOL><DEDENT>
Logs message to stderr if logging isn't initialized.