mirror of
https://github.com/Pumpkin-MC/Pumpkin-Website.git
synced 2025-04-11 16:39:41 +00:00
* Change VitePress config to add locales * Move English documentation into new Directory * Started Dutch translations * Add Translation instructions * Set cleanUrls (Removes .html in URLs) * Ignore typo's for files containing translations * Add Dutch translations * Simplify config structure * Fix main page redirects for Dutch translation * Updated small indent issue --------- Co-authored-by: khalaor-gh <khalaor4@gmail.com>
1.5 KiB
1.5 KiB
Logging
Pumpkin stelt je in staat om aan te passen wat je in je logs wilt hebben.
Logging configureren
enabled
: Boolean
Of logging is ingeschakeld of niet.
:::code-group
[logging]
enabled = true
:::
level
: Enum
Wat er moet worden gelogd. Mogelijke waarden zijn:
- Off
- Error
- Warn
- Info
- Debug
- Trace
:::code-group
[logging]
enabled = true
level = "Debug"
:::
env
: Boolean
Of het mogelijk is om het logniveau te kiezen door de RUST_LOG
-omgevingsvariabele in te stellen of niet.
:::code-group
[logging]
enabled = true
env = true
:::
threads
: Boolean
Of threads in het logbericht moeten worden weergegeven of niet.
:::code-group
[logging]
enabled = true
threads = false
:::
color
: Boolean
Of er met kleur naar de console moet worden geprint of niet.
:::code-group
[logging]
enabled = true
color = false
:::
timestamp
: Boolean
Of de tijdstempel in het bericht moet worden weergegeven of niet.
:::code-group
[logging]
enabled = true
timestamp = false
:::
Standaardconfiguratie
Standaard is logging ingeschakeld en wordt er met kleur, threads en tijdstempel op het Info
-niveau geprint.
:::code-group
[logging]
enabled = true
level = "Info"
env = false
threads = true
color = true
timestamp = true
:::