Skip to content

Deprecate ILogger in favor of the PSR-3 logger - #21875

Merged
MorrisJobke merged 2 commits into
masterfrom
techdebt/deprecate-ilogger
Jul 20, 2020
Merged

Deprecate ILogger in favor of the PSR-3 logger#21875
MorrisJobke merged 2 commits into
masterfrom
techdebt/deprecate-ilogger

Conversation

@ChristophWurst

Copy link
Copy Markdown
Member

The logger service was always intended to follow the PSR-3 interface.
It's time to embrace this and switch over to the "official" API,
hence this custom interface can be slowly phased out.

With Nextcloud 20 the logger also got support for

So there are no more excuses not to use this 😉

The logger service was always intended to follow the PSR-3 interface.
It's time to embrace this and switch over to the "official" API,
hence this custom interface can be slowly phased out.
With Nextcloud 20 the logger also got support for
* App id filled out automatically
* Exceptions handling (as replacement for logException)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurstChristophWurst added 3. to review Waiting for reviews technical debt 🧱 🤔🚀 pending documentation This pull request needs an associated documentation update labels Jul 16, 2020
@ChristophWurstChristophWurst added this to the Nextcloud 20 milestone Jul 16, 2020
@ChristophWurstChristophWurst self-assigned this Jul 16, 2020
@ChristophWurstChristophWurst changed the title Deprecate ILoggerDeprecate ILogger in favor of the PSR-3 loggerJul 16, 2020
@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

As a demonstration of the changes I've migrated one small app.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst
ChristophWurstforce-pushed the techdebt/deprecate-ilogger branch from f0433dd to b3b856cCompareJuly 16, 2020 17:38
@MorrisJobke
MorrisJobke merged commit 09e6b26 into masterJul 20, 2020
@MorrisJobke
MorrisJobke deleted the techdebt/deprecate-ilogger branch July 20, 2020 14:45
@ChristophWurst

Copy link
Copy Markdown
MemberAuthor

Documented in nextcloud/documentation#5160

@ChristophWurstChristophWurst removed the pending documentation This pull request needs an associated documentation update label Oct 6, 2020
R0Wi added a commit to R0Wi-DEV/workflow_ocr that referenced this pull request Oct 9, 2020
bahnwaerter pushed a commit to R0Wi-DEV/workflow_ocr that referenced this pull request Oct 10, 2020
* NC20 IBootStrap, LoggerInterface,
* Cover RegisterFlowOperationsListener
* Add tests
* Use PSR-3 ContainerInterface
* Include autoload.php inside of Application
* Lint fix
* Exception serialization (see nextcloud/server#21875)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewstechnical debt🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@ChristophWurst@rullzer@MorrisJobke