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

refactor: Migrate away from deprecated ILogger interface to PSR-3 #6230

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Aug 19, 2024

  • Target version: main

Summary

Mostly replace ILogger with LoggerInterface and some minor cleanup (constructor property promotion).

Some places used the deprecated logException this is easy to migrate by simply use the appropriate log level on the logger and place the exception under the exception key in the context.
Also the manual checking of the configured log level is not needed, as this is already done by the logger.

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Tests (unit, integration, api and/or acceptance) are included
  • Documentation (manuals or wiki) has been updated or is not required

@susnux susnux requested review from juliushaertl, a team and max-nextcloud and removed request for a team August 19, 2024 11:52
@susnux susnux force-pushed the refactor/migrate-away-from-ILogger branch from 5cee0b7 to 0cf0b17 Compare August 19, 2024 11:53
Mostly replace `ILogger` with `LoggerInterface` and some minor cleanup (constructor property promotion).
Some places used the deprecated `logException` this is easy to migrate by simply use the appropriate loglevel on the logger
and place the exception under the `exception` key in the context.
Also the manual checking of the configured log level is not needed, as this is already done by the logger.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the refactor/migrate-away-from-ILogger branch from 0cf0b17 to beb563e Compare August 19, 2024 12:09
Copy link
Member

@juliushaertl juliushaertl left a comment

Choose a reason for hiding this comment

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

❤️

@juliushaertl juliushaertl merged commit 67bd5dc into main Aug 19, 2024
35 checks passed
@juliushaertl juliushaertl deleted the refactor/migrate-away-from-ILogger branch August 19, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants