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

Release files for logfit 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for logfit 1.1.1
File Size Uploaded
logfit-1.1.1.tar.gz 8.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for logfit 1.1.1
File Interpreter ABI Platform
logfit-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 17.8 kB

Release files / logfit-1.1.1.tar.gz

Download URL logfit-1.1.1.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b64c7b42ef184ed84f254bd4df4541cf0c1c51f718df71f67ad999860373e157
BLAKE2b-256 checksum
How to use checksums
859cdea375ae025eeee37d1ee366f611bc001ff3d33a6b4ab30d8a13d162556c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / logfit-1.1.1-py3-none-any.whl

Download URL logfit-1.1.1-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39b73f1a1cd2390afb352d8d7a4984ce73d95ef378f54c2c742a27bf60beb50f
BLAKE2b-256 checksum
How to use checksums
0ee4e3889a6bf117645ec40163316fb75aecb94dc4deac7d86362a0827b8480e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page