Skip to main content

tail -F

Project description

python tail

copy from activestate

Usage

watch dir

cqh_tail --pattern=~/**/*.log

watch dir and filter

cqh_tail --pattern=~/**/*.log --line-filter="\.general/"

problems

UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0x82 in position 0: invalid start byte

Traceback (most recent call last):
File "/home/deploy/envs/default/bin/cqh_tail", line 8, in <module>
    sys.exit(main())
File "/home/deploy/envs/default/lib/python3.6/site-packages/cqh_tail/run.py", line 318, in main
    w = LogWatcher(pattern, tail_lines=count, callback=echo)
File "/home/deploy/envs/default/lib/python3.6/site-packages/cqh_tail/run.py", line 66, in __init__
    self._callback(file.name, lines)
File "/home/deploy/envs/default/lib/python3.6/site-packages/cqh_tail/run.py", line 313, in echo
    line = line.decode(convert_args.encode)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 0: invalid start byte

Project details


Download files

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

Source Distribution

cqh_tail-0.0.10.tar.gz (5.1 kB view hashes)

Uploaded Source

Built Distribution

cqh_tail-0.0.10-py3-none-any.whl (5.8 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