otros-systems / otroslogviewer

Log viewer focused on developers work
Apache License 2.0
422 stars 87 forks source link

I get empty results and Can't parse error #646

Open PavelTurk opened 1 month ago

PavelTurk commented 1 month ago

This is my first attempt to start working with otroslogviewer but I can't make it work. What I did:

  1. I imported by log4j2 file: Screenshot from 2024-08-05 11-05-11

  2. I open log file I get: Screenshot from 2024-08-05 11-06-35

  3. When I press open I get: Screenshot from 2024-08-05 11-07-26

Could anyone say what I am doing wrong?

PavelTurk commented 1 month ago

Nobody knows? Could anyone provide a piece of working log so I could at least understand how it works.

svennissel commented 1 month ago

Can you add some lines of the of the logfile and the log4j2 configuration?

svennissel commented 1 month ago

In .otroslogviewer\plugins\logimporters you find all paterns. You can create a pattern by your own. Like:

type=log4j
pattern=TIMESTAMP [LEVEL] [THREAD] LOGGER MESSAGE
dateFormat=yyyy-MM-dd HH:mm:ss.SSS
name=My Pattern
charset=windows-1252

see also: https://github.com/otros-systems/otroslogviewer/wiki/Log4jPatternLayout#the-log4j-patternlayout-parser