log4japache-chainsaw

Why ChainSaw cannot display logger name?


I am using the latest ChainSaw developer snapshot

I'm trying get logs from a file with logs in pattern :

[%d] [%t] [%c] [%m]%n

and I don't know why it doesn't work - whole log is read as %m. When I use pattern without %c every log is displayed correctly.

enter image description here


Solution

  • Try this pattern instead

    [TIMESTAMP] [THREAD] [LOGGER] [MESSAGE]

    (I'm assuming your logs also have those "[]", otherwise remove them)