-
Notifications
You must be signed in to change notification settings - Fork 58
logging.yml
Jan Kluka edited this page Jul 27, 2026
·
2 revisions
# ═══════════════════════════════════════════════════════════════════════════
# X-Prison - File logging
# ═══════════════════════════════════════════════════════════════════════════
# X-Prison writes its own log file to plugins/X-Prison/logs/latest.log, so you
# no longer have to dig X-Prison's lines out of the server-wide latest.log.
# Add-on output is included too, tagged [Addon:Name].
#
# When reporting a problem, send plugins/X-Prison/logs/errors.log - or run
# /xprison logs dump, which packages everything up for you.
#
# IMPORTANT - this file controls what is WRITTEN TO DISK. What is *produced*
# is still controlled by 'debug-mode' and 'debug-sql-queries' in config.yml.
# ═══════════════════════════════════════════════════════════════════════════
# Turn the whole log file off. When false, logging costs nothing at all -
# X-Prison still prints to the console exactly as before.
enabled: true
file:
# Folder inside plugins/X-Prison/ where log files are kept.
directory: logs
# Minimum level written to the file: DEBUG, INFO, WARN, ERROR or OFF.
# This is independent of what the console shows.
#
# Note: X-Prison prints its debug output at INFO level (so the console shows
# it when debug-mode is on), so DEBUG and INFO both keep everything here.
# Set this to WARN if you want to run with debug-mode: true for a while but
# keep the file down to problems only.
level: INFO
# How often buffered lines are written out, in milliseconds.
flush-interval-ms: 1000
# Lines at this level or above are written out immediately, so a crash cannot
# swallow the warning that explains it.
flush-immediately-at: WARN
# How many lines may wait in memory. Writing happens off the server thread; if
# logging ever outruns the disk, the newest lines are dropped (and counted in
# the file) rather than making the server wait for it.
queue-size: 8192
rotation:
# Start a new file once the current one passes this size. 0 disables it.
max-size-mb: 25
# Also start a new file when the date changes.
daily: true
# Compress rolled files to .gz. They shrink roughly tenfold; read them with
# zgrep, 7-Zip, or any archive tool.
compress: true
retention:
# Delete rolled files older than this many days. 0 disables age-based cleanup.
# Note that logs contain player names and UUIDs, so this doubles as how long
# that information is kept on disk.
max-age-days: 14
# Hard cap on the total size of the logs folder; the oldest rolled files are
# deleted first. 0 disables it. latest.log and errors.log are never deleted.
max-total-size-mb: 500
# How often (in minutes) the cleanup runs.
cleanup-interval-minutes: 60
# Run one cleanup pass on startup.
clean-on-startup: true
# A second file containing only warnings and errors - the one to attach to a
# bug report.
error-file:
enabled: true
name: errors.log
max-size-mb: 5
# Write a summary at the top of each log file: plugin and server versions, Java
# version, database type, enabled modules and loaded add-ons. Saves a round of
# questions on every support request.
session-header: true- Currencies
- Ranks
- Prestiges
- Rebirths
- Mines
- AutoSell
- AutoMiner
- Enchants
- Pickaxe Levels
- Pickaxe Skins
- Pickaxe Quality
- Pickaxe Settings
- Gangs
- Multipliers
- Blocks
- Bombs
- History
- Mining Stats
- Nicknames
- Battle Pass
- Quests
- Daily Rewards
- Milestones
- config.yml
- autominer.yml
- autosell.yml
- block-rewards.yml
- enchants.yml
- currencies.yml
- multipliers.yml
- ranks.yml
- prestiges.yml
- pickaxe-levels.yml
- pickaxe-skins.yml
- pickaxe-quality.yml
- gangs.yml
- mines.yml
- bombs.yml
- blocks.yml
- history.yml
- logging.yml
- mining-stats.yml
- rebirths.yml
- battlepass.yml
- quests.yml
- dailyrewards.yml
- milestones.yml
- efficiency.json
- fortune.json
- unbreaking.json
- haste.json
- speed.json
- fly.json
- nightvision.json
- jumpboost.json
- autosell.json
- tokenfinder.json
- gemfinder.json
- salary.json
- charity.json
- blessing.json
- gangvaluefinder.json
- prestigefinder.json
