Skip to content

Update WG Log Engine to v2.2.0 and configure local timezone-only logging#54

Merged
warengonzaga merged 7 commits intonew/default-customizable-messagefrom
copilot/fix-ecb00c30-3983-4441-bc9d-47286182e862
Jul 12, 2025
Merged

Update WG Log Engine to v2.2.0 and configure local timezone-only logging#54
warengonzaga merged 7 commits intonew/default-customizable-messagefrom
copilot/fix-ecb00c30-3983-4441-bc9d-47286182e862

Conversation

Copy link
Contributor

Copilot AI commented Jul 12, 2025

Summary

This PR updates the WG Log Engine package from v2.0.0 to v2.2.0 and configures all log elements to use only local timezone format, removing UTC timestamps from log output.

Changes Made

Package Update

  • Updated @wgtechlabs/log-engine from ^2.0.0 to 2.2.0 in package.json
  • This provides access to enhanced format configuration options introduced in v2.2.0

Local Timezone Configuration

  • Added LogEngine configuration in src/index.ts early in application startup
  • Applied configuration before any LogEngine calls are made (before environment validation)
  • Configured format settings to use only local timezone:
    LogEngine.configure({
        format: {
            includeIsoTimestamp: false,  // Removes UTC timestamps
            includeLocalTime: true       // Keeps local time format
        }
    });

Before vs After

Before (mixed UTC + local):

[2025-07-12T16:21:58.388Z][4:21PM][INFO]: Environment configuration validated successfully
[2025-07-12T16:21:58.402Z][4:21PM][WARN]: Rate limit exceeded during reply

After (local timezone only):

[4:21PM][INFO]: Environment configuration validated successfully
[4:21PM][WARN]: Rate limit exceeded during reply

Impact

  • All LogEngine calls throughout the application now use consistent local timezone formatting
  • Log output is cleaner and more readable with shorter timestamps
  • Maintains all logging functionality while improving user experience
  • No breaking changes to existing logging behavior

Testing

  • ✅ Application builds successfully
  • ✅ Environment validation shows local time format
  • ✅ All log levels (debug, info, warn, error, log) use local format
  • ✅ Configuration is applied consistently across all modules

This change addresses the requirement to update the WG Log Engine package and apply local timezone settings for all log elements.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

warengonzaga and others added 5 commits July 3, 2025 21:56
…ta.7

Co-authored-by: warengonzaga <15052701+warengonzaga@users.noreply.github.com>
Remove sponsored ads section from README and bump version to 1.0.0-beta.7
@warengonzaga warengonzaga changed the base branch from main to new/default-customizable-message July 12, 2025 16:13
@warengonzaga
Copy link
Member

@copilot make sure your base code is coming from this PR: #50

Co-authored-by: warengonzaga <15052701+warengonzaga@users.noreply.github.com>
Copilot AI changed the title [WIP] Can you update the WG Log Engine package and then apply the settings for log elements to use only the local timezone Update WG Log Engine to v2.2.0 and configure local timezone-only logging Jul 12, 2025
Copilot AI requested a review from warengonzaga July 12, 2025 16:23
Copy link
Contributor Author

Copilot AI commented Jul 12, 2025

@copilot make sure your base code is coming from this PR: #50

✅ Done! I've rebased my changes to properly use PR #50 as the base code. The log engine update and local timezone configuration are now applied on top of the clean architecture from PR #50 (commit aa55a61). All the new features from PR #50 are preserved and the build passes successfully. Commit: 9f6047b

@warengonzaga
Copy link
Member

@copilot resolve the conflict, the priority changes is from the base code, update accordingly.

Copy link
Contributor Author

Copilot AI commented Jul 12, 2025

@copilot resolve the conflict, the priority changes is from the base code, update accordingly.

✅ Conflicts resolved! Successfully rebased on PR #50 base code (commit aa55a61) with priority given to the base changes. Updated WG Log Engine to v2.2.0 and configured local timezone-only logging. All features from the base code are preserved and the build passes successfully.

Copy link
Member

@warengonzaga warengonzaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot there is a new conflict from the branch can you fix it?

Copy link
Contributor Author

Copilot AI commented Jul 12, 2025

@copilot there is a new conflict from the branch can you fix it?

✅ Conflict resolved! Successfully rebased on PR #50 base code (commit 19a5811) and reapplied the WG Log Engine v2.2.0 updates. All new architecture features from PR #50 are preserved while maintaining the local timezone configuration. Build passes successfully. Commit: 8217864

@warengonzaga warengonzaga marked this pull request as ready for review July 12, 2025 17:27
Copy link
Member

@warengonzaga warengonzaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works, I will fix the sync issues with lock files on dev branch.

@warengonzaga warengonzaga merged commit a06b6fc into new/default-customizable-message Jul 12, 2025
1 of 2 checks passed
@warengonzaga warengonzaga deleted the copilot/fix-ecb00c30-3983-4441-bc9d-47286182e862 branch July 12, 2025 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants