BetterLogs 更好的日志 icon

BetterLogs 更好的日志 -----

BetterLogs provides customizable, efficient logging for Bukkit servers. 一个日志优化插件



BetterLogs
BetterLogs is a versatile logging plugin designed for Bukkit servers, providing advanced logging capabilities to help server administrators manage and monitor server logs more effectively. This plugin offers a range of features, including customizable log formats, repeat log handling, log compression, and retention policies.

Key Features
  1. Customizable Log Formats
    • Users can define their own log formats using a variety of placeholders, such as {yyyy}, {MM}, {dd}, {HH}, {mm}, {ss}, {level}, {message}, {plugin}, {thread}, {class}, {method}. This allows for highly detailed and structured logging that can be tailored to specific needs.
  2. Repeat Log Handling
    • The plugin can detect and handle repeated log messages within a specified interval. This feature helps reduce log clutter by summarizing repeated messages and indicating the number of repetitions.
  3. Log Compression
    • When enabled, the plugin compresses the current log file into a .gz archive upon server shutdown. This helps save disk space and keeps the log directory organized.
  4. Retention Policies
    • Administrators can configure how long log files and compressed log files should be retained. Old files are automatically deleted based on the specified retention days, ensuring that the log directory does not grow excessively large.
  5. Log Filtering
    • The plugin allows filtering of logs based on severity levels (e.g., INFO, WARNING, SEVERE) and can exclude logs from specific plugins. This feature helps focus on important logs while ignoring less relevant ones.
  6. Thread and Source Information
    • 日志可以包含有关生成日志的线程、类和方法的信息。这提供了可用于调试和监控的额外上下文。
  7. 服务器正常运行时间跟踪
    • 该插件可以在每个日志条目中包含服务器的正常运行时间,格式为 HH:mm:ss。这有助于将日志与服务器的运行时间相关联。
配置
该插件使用一个全面的 config.yml 文件,允许管理员配置日志记录的所有方面。关键配置选项包括:
  • Log Format(日志格式):使用占位符的可自定义格式字符串。
  • 重复日志设置:启用/禁用重复日志处理并设置间隔。
  • Log Compression(日志压缩):启用/禁用压缩并指定日志文件和压缩日志的保留天数。
  • Log Levels:定义应记录的日志级别。
  • 过滤:配置不同日志级别的过滤,并指定要排除的插件。
用法
  1. 安装方式:
    • 将 BetterLogs.jar 文件放在 Bukkit 服务器的 plugins 文件夹中。
    • 启动服务器以生成默认config.yml文件(如果不存在)。
  2. 配置
    • 编辑 config.yml 文件以自定义日志格式、保留策略和其他设置。
  3. 作:
    • 该插件将根据配置的设置自动处理日志记录。日志将写入 plugins/BetterLogs/log 目录。
好处
  • 增强监控:详细且结构化的日志可让您更好地了解服务器作。
  • 自定义:高度可定制的日志格式和筛选选项允许定制日志记录解决方案。
  • 易于使用:简单的配置和自动设置使其易于部署和管理。
BetterLogs 旨在为 Bukkit 服务器提供强大而灵活的日志记录解决方案,为管理员提供以最少的工作量维护高质量日志所需的工具。
Resource Information
Author:
----------
Total Downloads: 19
First Release: Feb 21, 2025
Last Update: Feb 21, 2025
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings