forked from devops-coop/ansible-minecraft
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* overwrite the log4j config as default * using java 17 for the latest minecraft server version
- Loading branch information
Showing
7 changed files
with
84 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration> | ||
<Appenders> | ||
|
||
<Console name="console" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} [%level] %msg%n" /> | ||
</Console> | ||
|
||
<RollingRandomAccessFile name="rolling_server_log" fileName="{{ minecraft_external_log_conf.fileName | default('logs/server.log') }}" | ||
filePattern="{{ minecraft_external_log_conf.filePattern | default('logs/server_%d{yyyy-MM-dd}.log.gz') }}"> | ||
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} [%level] %msg%n" /> | ||
<Policies> | ||
<TimeBasedTriggeringPolicy /> | ||
{% if minecraft_external_log_conf.sizeBased is defined -%} | ||
<SizeBasedTriggeringPolicy size="{{ minecraft_external_log_conf.sizeBased }}" /> | ||
{% endif %} | ||
</Policies> | ||
{% if minecraft_external_log_conf.rollover is defined -%} | ||
<DefaultRolloverStrategy max="{{ minecraft_external_log_conf.rollover }}" /> | ||
{% endif %} | ||
</RollingRandomAccessFile> | ||
</Appenders> | ||
<Loggers> | ||
<Root level="info"> | ||
<AppenderRef ref="rolling_server_log" /> | ||
<!-- <AppenderRef ref="console" /> --> | ||
</Root> | ||
</Loggers> | ||
</Configuration> | ||
<Configuration status="WARN"> | ||
<Appenders> | ||
<Console name="SysOut" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg{nolookups}%n" /> | ||
</Console> | ||
<Queue name="ServerGuiConsole"> | ||
<PatternLayout pattern="[%d{HH:mm:ss} %level]: %msg{nolookups}%n" /> | ||
</Queue> | ||
<RollingRandomAccessFile name="File" fileName="{{ minecraft_external_log_conf.fileName | default('logs/server.log') }}" filePattern="{{ minecraft_external_log_conf.filePattern | default('logs/server_%d{yyyy-MM-dd}.log.gz') }}"> | ||
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg{nolookups}%n" /> | ||
<Policies> | ||
<TimeBasedTriggeringPolicy /> | ||
<OnStartupTriggeringPolicy /> | ||
{% if minecraft_external_log_conf.sizeBased is defined -%} | ||
<SizeBasedTriggeringPolicy size="{{ minecraft_external_log_conf.sizeBased }}" /> | ||
{% endif %} | ||
</Policies> | ||
{% if minecraft_external_log_conf.rollover is defined -%} | ||
<DefaultRolloverStrategy max="{{ minecraft_external_log_conf.rollover }}" /> | ||
{% endif %} | ||
</RollingRandomAccessFile> | ||
</Appenders> | ||
<Loggers> | ||
<Root level="info"> | ||
<filters> | ||
<MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL" /> | ||
</filters> | ||
<AppenderRef ref="SysOut" /> | ||
<AppenderRef ref="File" /> | ||
<AppenderRef ref="ServerGuiConsole" /> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration status="WARN" packages="com.mojang.util"> | ||
<Appenders> | ||
<Console name="SysOut" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" /> | ||
</Console> | ||
<Queue name="ServerGuiConsole"> | ||
<PatternLayout pattern="[%d{HH:mm:ss} %level]: %msg%n" /> | ||
</Queue> | ||
<RollingRandomAccessFile name="File" fileName="{{ minecraft_external_log_conf.fileName | default('logs/server.log') }}" filePattern="{{ minecraft_external_log_conf.filePattern | default('logs/server_%d{yyyy-MM-dd}.log.gz') }}"> | ||
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" /> | ||
<Policies> | ||
<TimeBasedTriggeringPolicy /> | ||
<OnStartupTriggeringPolicy /> | ||
{% if minecraft_external_log_conf.sizeBased is defined -%} | ||
<SizeBasedTriggeringPolicy size="{{ minecraft_external_log_conf.sizeBased }}" /> | ||
{% endif %} | ||
</Policies> | ||
{% if minecraft_external_log_conf.rollover is defined -%} | ||
<DefaultRolloverStrategy max="{{ minecraft_external_log_conf.rollover }}" /> | ||
{% endif %} | ||
</RollingRandomAccessFile> | ||
</Appenders> | ||
<Loggers> | ||
<Root level="info"> | ||
<filters> | ||
<MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL" /> | ||
<RegexFilter regex="(?s).*\$\{[^}]*\}.*" onMatch="DENY" onMismatch="NEUTRAL" /> | ||
</filters> | ||
<AppenderRef ref="SysOut" /> | ||
<AppenderRef ref="File" /> | ||
<AppenderRef ref="ServerGuiConsole" /> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters