项目作者: cob16

项目描述 :
Log.tf Analyser
高级语言: Python
项目地址: git://github.com/cob16/logtf_analyzer.git
创建时间: 2017-10-05T23:32:46Z
项目社区:https://github.com/cob16/logtf_analyzer

开源协议:MIT License

下载


Log.tf Analyser

Build Status

logtf_analyser is a cli app to download and query logs from Logs.tf.

Currently, this is limited to chat logs but there are plans to add full log support.

SQLite is required

Install

  1. pip install logtf_analyser

Examples

Download the last 12 logs of a player

This will download and load all selected chat logs into a sql lite db.
This will ignore any pre-existing logs.

  1. $ logtf download -l 12 76561197960287930
Get number of ‘gg’s
  1. $ logtf chat --count-only --steam-id 76561197960287930 --search-str "gg"
  2. 12

Usage

  1. usage: logtf [-h] [-v | -q] [--loglvl {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
  2. [--logfile LOGFILE] [--logfmt LOGFMT] [--dbname DBNAME]
  3. {chat,download,info,prune} ... [subcommands [subcommands ...]]
  4. Downloads tf2 chat from logs.tf into a db and provides search. Use
  5. [subcommand] -h to get information of a command
  6. positional arguments:
  7. subcommands
  8. optional arguments:
  9. -h, --help show this help message and exit
  10. -v, --verbose Increse logging output
  11. -q, --quiet Decrease logging output
  12. --dbname DBNAME, -d DBNAME
  13. Name of sqlite db (default: chat.db)
  14. Available subcommands:
  15. {chat,download,info,prune}
  16. chat
  17. download
  18. info
  19. prune
  20. logging:
  21. Detailed control of logging output
  22. --loglvl {DEBUG,INFO,WARNING,ERROR,CRITICAL}
  23. Set explicit log level
  24. --logfile LOGFILE Ouput log messages to file
  25. --logfmt LOGFMT Log message format