<s> """<STR_LIT>""" <EOL> raise DeprecationWarning ( """<STR_LIT>""" + __file__ + """<STR_LIT>""" ) <EOL> from pyjamas import logging <EOL> __logger = logging . getAppendLogger ( __name__ , <EOL> logging . DEBUG , <EOL> logging . PLAIN_FORMAT ) <EOL> def setLogger ( logger ) : <EOL> """<STR_LIT>""" <EOL> global __logger <EOL> __logger = logger <EOL> def debug ( msg , * args , ** kwargs ) : <EOL> __logger . debug ( msg , * args , ** kwargs ) <EOL> def info ( msg , * args , ** kwargs ) : <EOL> __logger . info ( msg , * args , ** kwargs ) <EOL> def warning ( msg , * args , ** kwargs ) : <EOL> __logger . warning ( msg , * args , ** kwargs ) <EOL> warn = warning <EOL> def error ( msg , * args , ** kwargs ) : <EOL> __logger . error ( msg , * args , ** kwargs ) <EOL> def critical ( msg , * args , ** kwargs ) : <EOL> __logger . critical ( msg , * args , ** kwargs ) <EOL> fatal = critical <EOL> def exception ( msg , * args ) : <EOL> __logger . exception ( msg , * args ) <EOL> def write ( text ) : <EOL> """<STR_LIT>""" <EOL> __logger . debug ( text ) <EOL> def writebr ( text ) : <EOL> """<STR_LIT>""" <EOL> write ( text + "<STR_LIT:\n>" ) </s>
