监视日志文件并将其上载到log.fit

logfit的Python项目详细描述


PyPIPython Versions

Codeship Status for albertyw/logfit-daemon

logfit守护进程监视日志文件并将数据发送到logfit应用程序 用于分析。

安装

待办事项

用法

# 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

配置

守护进程可以从logfit_config.yamlconfig文件中读取格式为:

# Required: Get this from your log.fit accountsource:"64a4b9bd88f14511926e0de86f23e2d8"# Optional: The directory the daemon will watchwatch_directory:"/var/log/"# Optional: Minimum log level.  Possible options are# critical, error, warning, info, and debuglog_level:"warning"# Optional: File to write daemon logs tolog_file:"logfit.log"# Optional: limit watching log files to given mime typesallowed_mime_types:-text/plain-inode/x-empty# Optional: List of file globs to not watch, should be the# full absolute pathignore_paths:[]

开发

pip install -r requirements-test.txt
coverage run setup.py test
coverage report
flake8

发布

# 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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java根据一些规则对地图进行排序   java需要关于突破游戏冲突bug的帮助   在Javaservlet中打印XSLT转换的XML文档   使用volatile'status flag'布尔值的java同步?   java Hibernate 4.2、JPA 2.0关系OnetoMany单向注释   在java中,如何在不使用for循环的情况下找到数组列表中第二高的数字?   排序Java多维数组   安装位置上的java Izpack toggel复选框   使用SQL Server 2008数据库交付Java应用程序   处理如何解决线程“动画线程”java中的异常。lang.NullPointerException?   安卓如何在Java中调用OpenSSL方法?   JAVA使用tomcat在jsf应用程序上运行lang.StackOverflowerError   java隐藏javafx Listview中的垂直滚动条   java如何使用Spring Boot在运行时提供静态资源?   java如何将@EJB与远程接口结合使用”   java哪个版本是Sun/Oracle提供的JavaEEAPIX的最新版本。jar和下载最新版本>7.0   java向JavaFX ToggleSwitch添加更改侦听器   保存在哪里以及如何处理Java应用程序的版本?   java AsyncTask执行doInBackground()时出错