python - 基于时间范围,如何在python中从应用程序日志中grep整个线程日志
问题描述
基于时间范围,如何在 python 中从应用程序日志中 grep 整个线程跟踪。
如何从 python 中的应用程序日志中获取整个线程行。时间窗口将是用户参数。
示例日志:
2019-04-05 thread1:File created with reference1
2019-04-05 thread1: splitted successful 2019-04-05 thread1: archival moved.
2019-04-05 thread2: file created with reference 2.
解决方案
推荐阅读
- html - 无法在 Django 1.9 中加载 style.css
- angularjs - 通过 ASP.NET 样板中的 cookie 进行本地化
- git - 将更改发布到 packagegist 的正确方法?
- ios - Swift 从核心数据中获取图像到表视图
- python - 我在从 python 脚本进行 api 调用时生成了输出。我只需要该输出中的特定项目
- php - 在 Magento 2.2 上添加额外产品属性的正确方法
- azure - 是否有可能使用 Microsoft Azure Bot Services 创建 Java 聊天机器人?
- excel-formula - 如何通过列传播公式
- python - 在熊猫中如何基于相同的ID遍历两个数据帧
- html - 基于类而不是 id 连接到链接的锚标记