Log4j2.xml Eclipse 添加自动提示


Support of XSD/DTD linked to the configuration file

It would be very nice, if the the XML configuration uses an dedicated namespace, e.g. http://logging.apache.org/log4j/2.0/config.
This feature allows using XML catalogs to locate the schema locally, e.g. with Eclipse IDE.
The Log4j-events.xsd contains already such a declaration:


Then the configuration XML file needs only a small extension:

<?xml version="1.0" encoding="utf-8"?>
<Configuration status="WARN" xmlns="http://logging.apache.org/log4j/2.0/config">
    <Console name="Console" target="SYSTEM_OUT">
      <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n" />
    <Root level="error">
      <AppenderRef ref="Console" />

Everything happens for a reason 这个世界,没有偶然。



The rain falls because the sky can no longer handle its weight. Just like the tears fall because the heart can no longer handle the pain..—– 雨水落下来是因为天空无法承受它的重量,眼泪掉下来是因为心再也无法承受那样的伤痛.

In the end you’ll see who’s fake, who’s true and who would risk it all just for you. 到最后,你总会明白,谁是虚心假意,谁是真心实意,谁为了你不顾一切。

Warmness is luxury—which is reflected by deep cold and hurt. 温暖是奢侈的东西,奢侈到需要用很深的寒冷和疼痛才能体现。

Love does not consist in gazing at each other, but in looking outward together in the same direction.——爱不是彼此凝视,而是一起注视着同一个方向。

If the whole world betrays you, I’m gonna betray the whole world for you. 如果全世界背叛了你,我愿为你背叛全世界。

Be thankful for your past relationships, someone better suited to you is waiting out there.–感谢你逝去的恋情,因为更合适的人正在某处等你。

到底如何征服恐惧呢?If you want to conquer fear, don’t sit at home and think about it. Go out and get busy. 如果你想征服恐惧,不要坐在家里去胡思乱想。走出去,让自己忙碌起来。这就是战胜恐惧最有效的方法。

Many people do not need good-bye, because of just going by. Forget is that we give each other the best souvenir. 很多人不需要再见,因为只是路过而已。遗忘就是我们给彼此最好的纪念。

The best way to get over someone,is to get under someone else.—— 忘记某个人最好的方法,就是喜欢上其他人。