Jump to LogEntry in Custom Analyzer


Author
Message
sitob80
sitob80
Junior Member (91 reputation)Junior Member (91 reputation)Junior Member (91 reputation)Junior Member (91 reputation)Junior Member (91 reputation)Junior Member (91 reputation)Junior Member (91 reputation)Junior Member (91 reputation)Junior Member (91 reputation)
Group: Forum Members
Posts: 18, Visits: 105
Hi all,

we have written a custom analyzer that display some useful information to us in a separate window.
What we would like to achieve is that we can double click on a entry in our custom analyzer and the selected LogEntry - we have the logentry instance in the analyzer -  is automatically selected in the current filter view.
Is there any way we can achieve this ? As far as I can see the API of a logentry doesn't provide such functionality or am I wrong here?


Thank you very much for your support

LogViewPlus Support
LogViewPlus Support
Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)
Group: Moderators
Posts: 1.1K, Visits: 3.7K
There is currently no way to achieve this, but let me have a think about it and see what we can do in the next release.

Thanks for the suggestion!

Toby
LogViewPlus Support
LogViewPlus Support
Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)
Group: Moderators
Posts: 1.1K, Visits: 3.7K
Hi,

I have added a new API to the latest BETA release - v2.4.29.  This version contains a new ILogViewer interface which contains a method FindLogEntry.  Calling this method will find and select the provided log entry.

I have also updated the sample "CustomAnalyzer" project to show how this API is used.  Something like:

var result = MessageBox.Show(owner, $"Would you like to show the largest value?",
      "Average Elapsed", MessageBoxButtons.YesNo,
      MessageBoxIcon.Question, MessageBoxDefaultButton.Button1);

if (result == DialogResult.Yes)
{
  // We can optionally cast the owner to a ILogViewer for additional
  // functionality.
  //
  ((ILogViewer)owner).FindLogEntry(largest);
}


The beta release is available at: https://www.logviewplus.com/download.html

...and the code samples are here:  https://www.logviewplus.com/dist/LogViewPlus_Samples.zip

Hope that helps,

Toby

Edited 4 Years Ago by LogViewPlus Support
sitob80
sitob80
Junior Member (91 reputation)Junior Member (91 reputation)Junior Member (91 reputation)Junior Member (91 reputation)Junior Member (91 reputation)Junior Member (91 reputation)Junior Member (91 reputation)Junior Member (91 reputation)Junior Member (91 reputation)
Group: Forum Members
Posts: 18, Visits: 105
Hi Toby,

just wanted to let you know that your new interface works very well and that up till now it seems to do exactly the things we wanted to do.

Thank you very much for implementing this interface. Hehe

LogViewPlus Support
LogViewPlus Support
Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)Supreme Being (5.3K reputation)
Group: Moderators
Posts: 1.1K, Visits: 3.7K
Glad to hear it - thanks for letting me know!

Toby
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Login

Explore
Messages
Mentions
Search