Skip to main content

Downland and search chat logs from logs.tf

Project description

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

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.

$ logtf download -l 12 76561197960287930

Get number of ‘gg’s

$ logtf chat --count-only --steam-id 76561197960287930 --search-str "gg"
12

Usage

usage: logtf [-h] [-v | -q] [--loglvl {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
             [--logfile LOGFILE] [--logfmt LOGFMT] [--dbname DBNAME]
             {chat,download,info,prune} ... [subcommands [subcommands ...]]

Downloads tf2 chat from logs.tf into a db and provides search. Use
[subcommand] -h to get information of a command

positional arguments:
  subcommands

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Increse logging output
  -q, --quiet           Decrease logging output
  --dbname DBNAME, -d DBNAME
                        Name of sqlite db (default: chat.db)

Available subcommands:
  {chat,download,info,prune}
    chat
    download
    info
    prune

logging:
  Detailed control of logging output

  --loglvl {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        Set explicit log level
  --logfile LOGFILE     Ouput log messages to file
  --logfmt LOGFMT       Log message format

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for logtf-analyser, version 0.4.0
Filename, size & hash File type Python version Upload date
logtf_analyser-0.4.0.tar.gz (5.4 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page