Skip to content

feat: supports route-based service configuration#40

Merged
HugoRCD merged 6 commits intomainfrom
feat/service-override
Feb 4, 2026
Merged

feat: supports route-based service configuration#40
HugoRCD merged 6 commits intomainfrom
feat/service-override

Conversation

@HugoRCD
Copy link
Copy Markdown
Owner

@HugoRCD HugoRCD commented Feb 4, 2026

Resolves #38

This pull request introduces a new feature for route-based service identification in the logging system, allowing different service names to be associated with different API routes using glob patterns. This is particularly useful for multi-service or monolithic architectures that want to organize logs by business domain or service. The documentation and API have been updated to reflect these changes, and the useLogger function now supports explicit service name overrides.

@HugoRCD HugoRCD self-assigned this Feb 4, 2026
@HugoRCD HugoRCD requested a review from Copilot February 4, 2026 22:20
@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
evlog-docs Ready Ready Preview, Comment Feb 4, 2026 10:49pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 4, 2026

Thank you for following the naming conventions! 🙏

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Feb 4, 2026

npm i https://pkg.pr.new/evlog@40

commit: a42653b

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds route-based service identification to the evlog logging system, enabling different service names to be associated with different API routes using glob patterns. This addresses issue #38 which requested the ability to differentiate log entries by service in multi-service architectures.

Changes:

  • Added routes configuration option to associate service names with route patterns using glob matching
  • Extended useLogger to accept an optional service parameter for explicit service name override
  • Updated documentation to explain service identification priority and usage patterns

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
packages/evlog/src/runtime/server/useLogger.ts Added optional service parameter to override default service name
packages/evlog/src/nuxt/module.ts Added RouteConfig interface and routes option to module configuration
packages/evlog/src/nitro/plugin.ts Implemented getServiceForPath function to match routes and apply service names
apps/playground/nuxt.config.ts Added example route-based service configuration
apps/docs/content/1.getting-started/3.quick-start.md Added Service Identification section with examples and priority documentation
apps/docs/content/1.getting-started/2.installation.md Added Route-Based Service Configuration section with usage examples

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/evlog/src/runtime/server/useLogger.ts
Comment thread apps/playground/nuxt.config.ts
Comment thread packages/evlog/src/nitro/plugin.ts Outdated
Comment thread packages/evlog/src/nitro/plugin.ts
Comment thread packages/evlog/src/nitro/plugin.ts
@HugoRCD HugoRCD marked this pull request as ready for review February 4, 2026 22:47
@HugoRCD HugoRCD merged commit 26d36f5 into main Feb 4, 2026
11 checks passed
@HugoRCD HugoRCD deleted the feat/service-override branch February 4, 2026 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature] multiple env services in nuxt

2 participants