Post Processing


Author
Message
dv1sual
dv1sual
Gaining Respect (117 reputation)Gaining Respect (117 reputation)Gaining Respect (117 reputation)Gaining Respect (117 reputation)Gaining Respect (117 reputation)Gaining Respect (117 reputation)Gaining Respect (117 reputation)Gaining Respect (117 reputation)Gaining Respect (117 reputation)
Group: Forum Members
Posts: 10, Visits: 22
Good morning!

I edited the CustomParser template to adapt LogViewPlus to the type of my logs, and it works fine.
What I did there it just introduces the Priority based on some string in my log lines.

Now I would like to Implement a post-processor where if the message in the log entry contains the word "error" it changes the priority of the line to "Error".

In the CustomParser i would use this:

           newEntry.Priority = "Info";
if (logLine.Contains("error"))
{
newEntry.Priority = "Error";
}


But it's not working in the PostProcessor.
Any hint how do I do it?

Thanks in Advance for any advise!

Edited 5 Years Ago by dv1sual
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
dv1sual - 5 Years Ago
LogViewPlus Support - 5 Years Ago
dv1sual - 5 Years Ago
LogViewPlus Support - 5 Years Ago
dv1sual - 5 Years Ago
                         The code looks fine. When you say it doesn't work - what do you mean?...
LogViewPlus Support - 5 Years Ago
                             Hi Toby, When I'm saying is not working I mean that when I open up my...
dv1sual - 5 Years Ago
                                 Thanks for the update. When you put a break point in your code, is it...
LogViewPlus Support - 5 Years Ago
                                     Hi Toby, you're a legend. I didn't add the post-processor to the...
dv1sual - 5 Years Ago
                                         Glad to that helped. Thanks for letting me know. :-) Toby
LogViewPlus Support - 5 Years Ago

Similar Topics

Login

Explore
Messages
Mentions
Search