Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugins should be able to provide a synposis to a log file #207

Closed
Kittyfisto opened this issue Jul 19, 2019 · 2 comments
Closed

Plugins should be able to provide a synposis to a log file #207

Kittyfisto opened this issue Jul 19, 2019 · 2 comments

Comments

@Kittyfisto
Copy link
Owner

Whenever I'm debugging issues in one application or the other, I find myself constantly changing filters and scrolling over the entire log file to find some arcane information such as:

  • Application version
  • Environment variables
  • Length of log in minutes / hours / days
  • Even more application specific information

Tailviewer cannot do very much on a general front (besides finishing the goddamn analysis feature), however it could provide a plugin interface which allows the following:

Define a custom control which is displayed next to the log file itself

Tailviewer could, for example, provide another tab on the right side panel bar which expands when clicked on. This panel could then display the custom control provided by the log file. An MSBuild plugin might for example display the build time as well as a per-project status.

Allow user interaction between the synposis tab and the log file itself

A plugin could provide certain controls which filter the log file in a certain way which is always necessary for that type of log file. So for example a plugin for an MSBuild log could provide easy to reach filters which filter the output to display only the log entries pertaining to a particular project.

Proposed interface

public interface ILogFileSynopsisPlugin
    : IPlugin
{
    ILogFileSynopsisViewModel CreateViewModel(IServiceContainer services, ILogFile logFile);
    FrameworkElement CreateControl(IServiceContainer services, ILogFileSynopsisViewModel viewModel);
}
Kittyfisto added a commit that referenced this issue Jul 20, 2019
The outline tab is currently empty, however will be filled with in the next days with generic information. Plugins will be able to add even more information, if necessary.
Kittyfisto added a commit that referenced this issue Jul 20, 2019
@Kittyfisto
Copy link
Owner Author

Done. Will be part of the 0.9 release.

Kittyfisto added a commit that referenced this issue Jul 20, 2019
This outline is **only** shown when there is no plugin available for the selected data source
Kittyfisto added a commit that referenced this issue Jul 21, 2019
Instead of having a very complex and highly configurable system (which takes too much time to implement and thus too much time away from other features), we will have several smaller, more focused plugin interfaces which users can implement to achieve a very similar result. The ILogFileOutlinePlugin marks the start of that #207.
@Kittyfisto
Copy link
Owner Author

Fixed with v0.9.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant