Skip to content

Conversation

@ChristophWurst
Copy link
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>
@ChristophWurst ChristophWurst added 3. to review Waiting for reviews technical debt pending documentation This pull request needs an associated documentation update labels Jul 16, 2020
@ChristophWurst ChristophWurst added this to the Nextcloud 20 milestone Jul 16, 2020
@ChristophWurst ChristophWurst self-assigned this Jul 16, 2020
@ChristophWurst ChristophWurst changed the title Deprecate ILogger Deprecate ILogger in favor of the PSR-3 logger Jul 16, 2020
@ChristophWurst
Copy link
Member Author

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

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@ChristophWurst ChristophWurst force-pushed the techdebt/deprecate-ilogger branch from f0433dd to b3b856c Compare July 16, 2020 17:38
@MorrisJobke MorrisJobke merged commit 09e6b26 into master Jul 20, 2020
@MorrisJobke MorrisJobke deleted the techdebt/deprecate-ilogger branch July 20, 2020 14:45
@ChristophWurst
Copy link
Member Author

Documented in nextcloud/documentation#5160

@ChristophWurst ChristophWurst 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 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.

4 participants