{"id":484,"date":"2022-02-20T19:36:15","date_gmt":"2022-02-20T18:36:15","guid":{"rendered":"https:\/\/nissel.it\/?p=484"},"modified":"2022-02-20T19:44:06","modified_gmt":"2022-02-20T18:44:06","slug":"patch-parser-chooser-for-otroslogviewer","status":"publish","type":"post","link":"https:\/\/nissel.it\/index.php\/2022\/02\/20\/patch-parser-chooser-for-otroslogviewer\/","title":{"rendered":"patch parser chooser for OtrosLogViewer"},"content":{"rendered":"\n<p>OtrosLogViewer is a tool to analyse logfiles. If you choose a single Logfile to open, the application try to find the best parser for this file. But if you have more than one parser configured than fits on this file you cannot choose one. I created a patch to add a choice.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"533\" src=\"https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-4-1024x533.png\" alt=\"\" class=\"wp-image-485\" srcset=\"https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-4-1024x533.png 1024w, https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-4-300x156.png 300w, https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-4-768x400.png 768w, https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-4.png 1120w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption>The file test.log can be open by Parser &#8222;Sven1&#8220; or &#8222;Sven2&#8220;<\/figcaption><\/figure>\n\n\n\n<!--more-->\n\n\n\n<p>If no parser can parse the file a error will be displayed (translated)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"507\" src=\"https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-5-1024x507.png\" alt=\"\" class=\"wp-image-486\" srcset=\"https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-5-1024x507.png 1024w, https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-5-300x149.png 300w, https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-5-768x380.png 768w, https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-5.png 1117w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption>The file index.html.3 cannot be parsed<\/figcaption><\/figure>\n\n\n\n<p>If you open more than one logfile, for example in the merge logfiles dialog, the dropdown cannot show the correct parser, but in the next dialog show the possible parser in the table.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"627\" src=\"https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-6-1024x627.png\" alt=\"\" class=\"wp-image-487\" srcset=\"https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-6-1024x627.png 1024w, https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-6-300x184.png 300w, https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-6-768x471.png 768w, https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-6.png 1268w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption>One of the selected files cannot be parsed<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"196\" src=\"https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-7-1024x196.png\" alt=\"\" class=\"wp-image-488\" srcset=\"https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-7-1024x196.png 1024w, https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-7-300x57.png 300w, https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-7-768x147.png 768w, https:\/\/nissel.it\/wp-content\/uploads\/2022\/02\/grafik-7.png 1264w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption>Possible importers will be displayed<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"links\">Links<\/h2>\n\n\n\n<p><a href=\"https:\/\/github.com\/otros-systems\/otroslogviewer\/pull\/593\">https:\/\/github.com\/otros-systems\/otroslogviewer\/pull\/593<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/github.com\/otros-systems\/otroslogviewer\">https:\/\/github.com\/otros-systems\/otroslogviewer<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>OtrosLogViewer is a tool to analyse logfiles. If you choose a single Logfile to open, the application try to find the best parser for this file. But if you have more than one parser configured than fits on this file you cannot choose one. I created a patch to add a choice.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[16],"class_list":["post-484","post","type-post","status-publish","format-standard","hentry","category-softwareentwicklung","tag-java"],"_links":{"self":[{"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/posts\/484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/comments?post=484"}],"version-history":[{"count":2,"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/posts\/484\/revisions"}],"predecessor-version":[{"id":491,"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/posts\/484\/revisions\/491"}],"wp:attachment":[{"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/media?parent=484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/categories?post=484"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nissel.it\/index.php\/wp-json\/wp\/v2\/tags?post=484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}