Skip to main content

PyPI Python Versions

Drone

The LogFit daemon watches log files and sends data to the LogFit app for analysis.

Installation

TODO

Usage

# Start in foreground mode
python3 logfit/client.py [run|foreground]

# Start in daemon mode
python3 logfit/client.py start

# Stop daemon
python3 logfit/client.py stop

# Restart the daemon
python3 logfit/client.py restart

# Get the daemon status
python3 logfit/client.py status

Configuration

The daemon can read from a logfit_config.yaml config file of the format:

# Required: Get this from your log.fit account
source: "64a4b9bd88f14511926e0de86f23e2d8"

# Optional: The directory the daemon will watch
watch_directory: "/var/log/"

# Optional: Minimum log level.  Possible options are
# critical, error, warning, info, and debug
log_level: "warning"

# Optional: File to write daemon logs to
log_file: "logfit.log"

# Optional: limit watching log files to given mime types
allowed_mime_types:
- text/plain
- inode/x-empty

# Optional: List of file globs to not watch, should be the
# full absolute path
ignore_paths: []

Development

python setup.py develop
pip install -r requirements-test.txt
flake8
coverage run -m unittest
coverage report -m

Publishing

# Publish to PyPI
python setup.py sdist bdist_wheel
twine upload dist/*

# Generate binaries for multiple operating systems
pyinstaller logfit/main.py -F -p logfit --hidden-import queue -n logfit_linux_x86_64
pyinstaller logfit/main.py -F -p logfit --hidden-import queue -n logfit_macos_x86_64
pyinstaller logfit/main.py -F -p logfit --hidden-import queue -n logfit_windows_x86_64

# Copy binaries into logfit-daemon-binary

Download files

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

Source Distribution

logfit-1.1.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logfit-1.1.1-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file logfit-1.1.1.tar.gz.

File metadata

  • Download URL: logfit-1.1.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for logfit-1.1.1.tar.gz
Algorithm Hash digest
SHA256 b64c7b42ef184ed84f254bd4df4541cf0c1c51f718df71f67ad999860373e157
MD5 8b66bbdf485f7ee924a9f1b8aca53829
BLAKE2b-256 859cdea375ae025eeee37d1ee366f611bc001ff3d33a6b4ab30d8a13d162556c

See more details on using hashes here.

File details

Details for the file logfit-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: logfit-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

File hashes

Hashes for logfit-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 39b73f1a1cd2390afb352d8d7a4984ce73d95ef378f54c2c742a27bf60beb50f
MD5 e7e2a48e9042e0d2d172f6e9053119e5
BLAKE2b-256 0ee4e3889a6bf117645ec40163316fb75aecb94dc4deac7d86362a0827b8480e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 files

1.1.0

2 files

1.0.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page