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 hashes)

Uploaded Python 3

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