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

Feature request: DX: Logger: Scopped logger autoinjection #602

Open
alpharder opened this issue Jul 18, 2024 · 1 comment
Open

Feature request: DX: Logger: Scopped logger autoinjection #602

alpharder opened this issue Jul 18, 2024 · 1 comment

Comments

@alpharder
Copy link
Contributor

alpharder commented Jul 18, 2024

.NET-alike generic logger autoinjection:

export class SessionsService {
  constructor(
    protected readonly logger: Logger<SessionsService> // results in logger.scoped('SessionsService') autoinjection
  )
}
@fergusean
Copy link
Contributor

I'm not familiar with .NET's logger, but based on your example, I believe this is what ScopedLogger provides (#483)

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

No branches or pull requests

2 participants