简体   繁体   English

如何在 Log4J2 属性文件中输入 minSize=0 的示例

[英]Example of How to Enter minSize=0 in a Log4J2 Properties File

I see the syntax for entering this in a XML property file for Log4J2 -- "OnStartupTriggeringPolicy": {"minSize":"0"}我看到在 Log4J2 的 XML 属性文件中输入它的语法 -- "OnStartupTriggeringPolicy": {"minSize":"0"}

How would you enter this in a properties file?你将如何在属性文件中输入它?

In a properties file you have lines of the shape 'key=value'.在属性文件中,您有形状为“key=value”的行。 In your case you need something like在您的情况下,您需要类似的东西

xxxxxx.xxxxxxx.xxxxxx.minSize=0

where I am not sure what the xxxxxx.xxxxxxx.xxxxxx has to be replaced for.我不确定必须更换xxxxxx.xxxxxxx.xxxxxx的原因。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM