Skip to main content

LogTailTool tail a log file in python

Project description

LogTailTool

LogTailTool tail a log file in python.

Usage (python code)

from logtailtool import LogTailTool

lines = LogTailTool("name.log")
for line in lines:
    print(line)

Usage (command line)

usage: logtailtool.py [-h] -f FILENAME [-p PATTERN] [-b] [-i INTERVAL]

LogTailTool

optional arguments:
  -h, --help            show this help message and exit
  -f FILENAME, --file FILENAME
                        Log file path (required)
  -p PATTERN, --pattern PATTERN
                        Pattern to extract (default: None)
  -b, --read-from-begin
                        Read from the begin of the file (default: false)
  -i INTERVAL, --interval INTERVAL
                        Interval time (default: 1)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

logtailtool-1.0.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file logtailtool-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: logtailtool-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.0

File hashes

Hashes for logtailtool-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 59a908d8384c85efe2e68bd71a2e3bda6c5c78a12c1868b5e1914aacbfd788e5
MD5 7c3fbecc25e839caaa0e3641b0f383bf
BLAKE2b-256 133aa48e49e6c0ff79624db9fbaf68304cc5d117e6d73dbce2ecc51dbc0ae010

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page