Question

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

Was it helpful?

Solution

Try this pattern instead

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

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top