How do I use a date pattern in a header/footer?

后端 未结 4 692
醉梦人生
醉梦人生 2020-12-28 20:13

Here\'s my appender configuration from my app.config. This just prints out the literal string instead of translating it to the date (i.e., it literally prints \"[START: %d

4条回答
  •  一个人的身影
    2020-12-28 21:06

    Answer from here.

    Works for me like a charm. No need to write a piece of code.

    Also in projects we usually use:

    Take a look at PatternString doc also.

    Also I've noticed that log file won't appear until you write first log statement.

提交回复
热议问题