add env var for log file

This commit is contained in:
Ecorous 2024-06-18 18:15:37 +01:00
parent 10a9a99651
commit 5512c89bc6
Signed by: Ecorous
SSH key fingerprint: SHA256:ni7WK6Ud51dVmDv8DctoqLEr3XXhAI51s6IFMYvJKDM

View file

@ -8,7 +8,7 @@ def defaultLevel = INFO
def defaultTarget = ConsoleTarget.SystemErr
appender("FILE", FileAppender) {
file = "logs_meta.log"
file = System.getenv("FROGMC_META_LOG") ?: "logs_meta.log"
append = true
encoder(PatternLayoutEncoder) {