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

adjusting log date time by timezone offset #572

Open
TekBear opened this issue Apr 12, 2020 · 5 comments
Open

adjusting log date time by timezone offset #572

TekBear opened this issue Apr 12, 2020 · 5 comments
Milestone

Comments

@TekBear
Copy link

TekBear commented Apr 12, 2020

I would really like a log viewer that can be configured to show (=convert) a log with UTC date time stamps to local date time stamps. For example the "folding at home" software logs are always UTC time but I really just want to view the log with log times displayed using my local time zone. Example of log file here: https://pastebin.com/zB6ZwKxV Some lines don't start with time stamp. Other types of logs perhaps from remote servers in another time zone may be prefixed yyyy-mm-dd hh:mm:ss

I can see skimming the documentation there are ways to add a plugin log filter, or a custom log importer. Is it correct to assume that date time stamp conversion would have to be done by a custom log importer?

I looked at page https://github.com/otros-systems/otroslogviewer/wiki/DevelopingPlugins and the first link is https://github.com/otros-systems/otroslogviewer/wiki/ImplementLogImporter.md - that page looks messed up is it code or markup ??

I was looking at example on page https://github.com/otros-systems/otroslogviewer/wiki/BatchProcessing the "example" link "http://otroslogviewer.googlecode.com/svn/trunk/OtrosLogViewer-app/src/main/java/examples/ExampleLogDataParsedListener.java" does not exist (still readable at http://web.archive.org/web/20160505064016/http://otroslogviewer.googlecode.com:80/svn/trunk/OtrosLogViewer-app/src/main/java/examples/ExampleLogDataParsedListener.java) perhaps someone could fix that?

I know a litte java any example code would help me if I have to do this myself. Anyone know if this can be done with this log viewer?

@benlazaro
Copy link
Contributor

@svennissel you have access to update the wiki, right? Seems like someone tried to applied an HTML table into the ImplementLogImporter.md file, at the bottom. My guess is that we just want to keep those 2 links to the other wiki pages there.
For the broken link in the BatchProcessing wiki page, the new link should point to: https://github.com/otros-systems/otroslogviewer/blob/master/olv-core/src/main/java/examples/ExampleLogDataParsedListener.java

@TekBear, I don't think you would be able to do the date/time conversion to local time zone using a plugin, especially not a log importer (anybody correct me if I'm wrong here, please). This sound more like a new feature and @svennissel already labeled this issue as an "enhancement" today, so hopefully we can start looking into it pretty soon. I know it's been a while since you opened the issue, but if you could stay tuned for possible questions we may have when implementing this feature, that would be great. It seems pretty straight forward but we never know :)

@benlazaro
Copy link
Contributor

@svennissel It would be good if we can add this feature to milestone 1.5.0

@svennissel svennissel added this to the 1.5.0 milestone Apr 21, 2022
@svennissel
Copy link
Collaborator

I put it into 1.5.0 milestone, but I'm not sure if we need this feature really.

Yes I have access to wiki. I fix it.

@TekBear
Copy link
Author

TekBear commented Apr 21, 2022

@benlazaro Yes still interested in a solution.

@DavidAccola
Copy link

I'd be interested in this feature as well!

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

4 participants