read .properties file using slf4j

前端 未结 3 1735
南笙
南笙 2021-01-05 23:39

I want to read data from .properties file using slf4j,T i am able to output the data on console but what i want is to output the data on some file so i need file Appender fo

3条回答
  •  醉话见心
    2021-01-05 23:58

    See http://slf4j.org/faq.html.

    SLF4J is only a facade, meaning that it does not provide a complete logging solution. Operations such as configuring appenders or setting logging levels cannot be performed with SLF4J.

    slf4j-simple doesn't provide extra configuration features at all.

    For other implementations you should use the way to configure they provide.

    For example, log4j.properties for slf4j-log4j. See http://logging.apache.org/log4j/1.2/manual.html#Configuration.

提交回复
热议问题