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

Uploaded Source

Built Distribution

cqh_tail-0.0.10-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file cqh_tail-0.0.10.tar.gz.

File metadata

  • Download URL: cqh_tail-0.0.10.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.9

File hashes

Hashes for cqh_tail-0.0.10.tar.gz
Algorithm Hash digest
SHA256 94b596c285b6c09dab27336a30a49d5644cd6858c3a54d7c114bd7269a53621a
MD5 fa46c667dbee39044b881b2a260269fd
BLAKE2b-256 113638eac7133b21c12862e603bbefff60d79347ec5e0688f877872e9762a373

See more details on using hashes here.

File details

Details for the file cqh_tail-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: cqh_tail-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.6.9

File hashes

Hashes for cqh_tail-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 2562094edcc65347b20793fe986860005c9b9a38750be58bd39f87863ebf47ff
MD5 cf4ceff84f715916fe538755fb5937fe
BLAKE2b-256 5a5e98c72da53aa23f258e16d658ac60750323bb38a7f5b94dcddc8f9f3e2e19

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