<s> import logging <EOL> import sys <EOL> def setup_stdout ( ) : <EOL> root = logging . getLogger ( ) <EOL> root . setLevel ( logging . DEBUG ) <EOL> ch = logging . StreamHandler ( sys . stdout ) <EOL> ch . setLevel ( logging . DEBUG ) <EOL> formatter = logging . Formatter ( '<STR_LIT>' ) <EOL> ch . setFormatter ( formatter ) <EOL> root . addHandler ( ch ) </s>
