[WordPress] 外掛分享: AB Truncate Debug Log

前言介紹

  • 這款 WordPress 外掛「AB Truncate Debug Log」是 2023-12-26 上架。 目前已經下架不再更新,不建議安裝使用。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2023-12-27,距離現在已有 493 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 4.9.0 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 7.4 以上。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

arnaudbroes |

外掛標籤

debug | wp-debug | Debug log | maintenance | wp debug log |

內容簡介

外掛將設定一個定時排程工作,當除錯日誌文件的大小達到一定值(預設為10MB)時,會自動截斷該文件的行數(預設為5,000行)以防止其過大佔據伺服器空間。不需要使用者介入。
使用兩個篩選器可以改變預設值:

- ab_truncate_debug_log_max_size:改變除錯日誌文件的最大大小(以MB為單位)。
- ab_truncate_debug_log_lines:改變除錯日誌文件的截斷行數。

下面是製作一組問題與答案的HTML清單:


  • 外掛的功能是什麼?

  • 該外掛使用定時排程工作的方式來截斷何種文件?

  • 當文件大小達到多少時,該外掛會截斷文件的行數?

  • 該外掛如何避免除錯日誌文件變得過大?

  • 有什麼方法可以改變除錯日誌文件的最大大小?

  • 有什麼方法可以改變除錯日誌文件的截斷行數?

原文外掛簡介

This simple plugin schedules a cron job that will truncate the debug log file to a certain number of lines (default: 5,000 lines) after the file reaches a certain size (default: 10MB). No user interaction is required.
This is to prevent the debug log file from growing too large and taking up too much space on the server.
Two filters can be used to change the default values:

ab_truncate_debug_log_max_size to change the maximum size of the debug log file (in MB).
ab_truncate_debug_log_lines to change the number of lines the debug log file is truncated to.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「AB Truncate Debug Log」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | trunk |

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon