feat: add timestamp formatting for log entries #16
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces improvements to the
magento-log-viewer
extension, focusing on enhanced timestamp formatting for log entries and updates to theCHANGELOG.md
file to improve readability and consistency. The most significant changes include the addition of a timestamp formatting function, integration of this function into the log viewer, and structural updates to the changelog.Timestamp Formatting Enhancements:
src/helpers.ts
: Added a newformatTimestamp
function to convert ISO timestamps in log entries to a localized user format, ensuring better readability.src/logViewer.ts
: Integrated theformatTimestamp
function into the log viewer, formatting timestamps in log entries displayed in the tree view. [1] [2]Changelog Updates:
CHANGELOG.md
: Improved readability by updating section headings to use consistent markdown syntax (###
instead of##
) and added a new entry for the upcoming release documenting the timestamp formatting feature. [1] [2]