Skip to content

Support class-based logObject resolution in logging #163

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

AbdElrahmaN31
Copy link

@AbdElrahmaN31 AbdElrahmaN31 commented Feb 27, 2025

Title: Support class-based logObject resolution in logging

Description:
This PR enhances the logging configuration by allowing logObject to be defined as a class reference (e.g., \App\Logging\ElasticsearchLogger::class). It ensures that class references are automatically resolved using app($logObject), while maintaining support for direct LoggerInterface instances and file-based logging (logPath & logLevel).

Checklist:

Thank you!

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.

1 participant