1. <strong id="7actg"></strong>
    2. <table id="7actg"></table>

    3. <address id="7actg"></address>
      <address id="7actg"></address>
      1. <object id="7actg"><tt id="7actg"></tt></object>

        log-monitor活動日志監(jiān)控

        聯(lián)合創(chuàng)作 · 2023-09-30 00:20

        log-monitor 是基于 tail 命令一個活動日志監(jiān)控器。

        為什么要使用日志監(jiān)控器?

        有時我們想知道 crontab 任務(wù)運行時正在發(fā)生什么,或者通過 php 腳本將什么錯誤寫入了 php 錯誤日志中,我們想快速知道。日志監(jiān)視器可以幫助您監(jiān)視日志并通知想要知道的用戶。

        日志監(jiān)控器可以做什么?

        • 通過 tail 命令監(jiān)視日志
        • 出現(xiàn)錯誤時通知用戶
        • 自定義日志過濾器界面,它將檢查日志是否錯誤
        • 自定義通知界面,它將通知用戶
        • 自定義閱讀器界面,如果您不想使用 tail 命令

        使用示例:

        Just remember that when you call the start method, do not forget to call wait method.
        $reader = new \Jenner\LogMonitor\Reader\Reader('/var/log/messages');
        $filter = new Jenner\LogMonitor\Filter\ExceptionFilter();
        $notify = new \Jenner\LogMonitor\Notification\EchoNotification();
        $process = new \Jenner\LogMonitor\MonitorTask($reader, $filter, $notify);
        $process->run();
        $process->wait();

         

        瀏覽 14
        點贊
        評論
        收藏
        分享

        手機掃一掃分享

        編輯 分享
        舉報
        評論
        圖片
        表情
        推薦
        點贊
        評論
        收藏
        分享

        手機掃一掃分享

        編輯 分享
        舉報
        1. <strong id="7actg"></strong>
        2. <table id="7actg"></table>

        3. <address id="7actg"></address>
          <address id="7actg"></address>
          1. <object id="7actg"><tt id="7actg"></tt></object>
            99久久久无码囯产精品 | 男人和美女的靠逼毛片 | 丁香五月六月婷婷 | 欧美五月婷婷 | 亚洲a级大片 | 久久久久亚洲精品成人无码 | 俺去俺来也www色官网cms | 性生活视频免费观看 | 三级黄色片在线播放 | 69精品在线 |