From: Razvan Deaconescu Date: Sat, 31 Oct 2009 21:20:24 +0000 (+0200) Subject: README file for libtorrent/StatusParser.py X-Git-Tag: getopt_long~281 X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=commitdiff_plain;h=e4b82fcacd7985385feb43cbfb230f369a1c788a;p=cs-p2p-next.git README file for libtorrent/StatusParser.py --- diff --git a/log-parser/libtorrent/README b/log-parser/libtorrent/README new file mode 100644 index 0000000..8ec9438 --- /dev/null +++ b/log-parser/libtorrent/README @@ -0,0 +1,20 @@ +== StatusParser.py == + +libtorrent status log files parser. A status log file is passed as argument. +Lines are parsed and written to status_messages table in database. + +Its arguments are a client session id, the status filename and the +database filename. + +** Draft ** + +* At this point, there is no database interraction (DatabaseWriter.py +function call is commented out). +* Sample call: + +--- +razvan@valhalla:~/projects/p2p-next/cs-p2p-next/log-parser/libtorrent$ PYTHONPATH=../../auto/db/ python StatusParser.py -i 2 -f ../../log-samples/libtorrent/libtorrent-status.sample.log ../../auto/db/p2p-next.db +--- + +* Some debug output messages can be enabled by initializing the DEBUG +global variable in the StatusParser.py to True.