2017-06-01 35 views
0

は、私は正常に全体のログエントリを印刷する方法を発見したPythonのSVN出力するログメッセージ

LogEntry(date=datetime.datetime(2017, 5, 3, 17, 6, 3, 905705, tzinfo=tzutc()), msg='we did something to this', revision=24945, author='bob', changelist=None) 
LogEntry(date=datetime.datetime(2017, 4, 10, 14, 52, 37, 145437, tzinfo=tzutc()), msg='wow another change we made', revision=24635, author='bobdrick', changelist=None) 

を...ので、に。エントリの "msg = '...'"部分だけを出力する方法はありますか?

答えて

0

私は構文は次のようになり、それを考え出した:

for e in control.log_default(): 
     pprint.pprint(e.msg) 

私は

を見落とし簡単修正
関連する問題