def init_logging(log_level):
log_level_filter = LogLevelFilterPredicate(<EOL>LogLevel.levelWithName(log_level))<EOL>log_level_filter.setLogLevelForNamespace(<EOL>'<STR_LIT>', LogLevel.warn)<EOL>log_observer = FilteringLogObserver(<EOL>textFileLogObserver(sys.stdout), [log_level_filter])<EOL>globalLogPublisher.addObserver(log_observer)<EOL>
Initialise the logging by adding an observer to the global log publisher.

:param str log_level: The minimum log level to log messages for.