2 Star 0 Fork 0

PumpkinBot00/SkyblockAddons

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
log-config-packets-only-console.xml 2.31 KB
一键复制 编辑 原始数据 按行查看 历史
<?xml version="1.0" encoding="UTF-8"?>
<Configuration xmlns:xi="http://www.w3.org/2001/XInclude" status="WARN" packages="com.mojang.util" monitorInterval="30">
<Appenders>
<RollingRandomAccessFile name="PacketFile" fileName="logs/packets-latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.packet-log.gz">
<MarkerFilter marker="NETWORK_PACKETS" onMatch="ACCEPT" onMismatch="DENY" />
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" />
<Policies>
<TimeBasedTriggeringPolicy />
<OnStartupTriggeringPolicy />
</Policies>
</RollingRandomAccessFile>
<Async name="AsyncPackets">
<filters>
<!-- We mainly care about sent packets. If you want received only use "PACKET_RECEIVED". -->
<!-- If you want both sent and received, use NETWORK_PACKETS. -->
<MarkerFilter marker="PACKET_SENT" onMatch="NEUTRAL" onMismatch="DENY" />
<!-- Add the packet IDs of the packets you want to ignore to the regex.-->
<!-- Please use decimal values and not hex; more info: https://wiki.vg/Debugging#Network_packets_only -->
<RegexFilter regex=".*(PLAY:(?:0|3|4|5|6|15)).*" onMatch="DENY" onMismatch="ACCEPT"/>
</filters>
<AppenderRef ref="SysOut" level="DEBUG" />
<AppenderRef ref="PacketFile" />
</Async>
</Appenders>
<Loggers>
<Logger level="debug" name="net.minecraft" additivity="false">
<AppenderRef ref="AsyncPackets" />
<AppenderRef ref="File">
<filters>
<ThresholdFilter level="INFO" onMatch="NEUTRAL" onMismatch="DENY" />
<MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL" />
</filters>
</AppenderRef>
</Logger>
<Root level="all">
<AppenderRef ref="FmlSysOut" level="INFO">
<!-- No packets are logged in here. This just removes all the FML messages from the console. -->
<MarkerFilter marker="NETWORK_PACKETS" onMatch="ACCEPT" onMismatch="DENY" />
</AppenderRef>
<AppenderRef ref="FmlFile"/>
</Root>
</Loggers>
<xi:include href="log-config.xml" />
</Configuration>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/PumpkinBot00/SkyblockAddons.git
git@gitee.com:PumpkinBot00/SkyblockAddons.git
PumpkinBot00
SkyblockAddons
SkyblockAddons
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385