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

Backport LoggerFactory to 1.x series #656

Merged

Conversation

FunFunFine
Copy link

See #655

This MR backports #629 to Cats-Effect 2 compatible release series.

hamnis added 15 commits June 3, 2022 15:38
The reasoning for this commit is that I want to avoid having a Sync instance just for being able to log in a http4s api.

Extract LoggerName from macro and make it an implicit.
This makes it easier to have forwarders to Slf4jLogger.

This should be binary compatible, I had to add some exclusions to mima because of the missing macro methods.
* Extract Platform traits for different code
* LoggerName moved to shared
* LoggerFactory with convenience methods.
* Extracted LoggerFactory and LoggerFactoryGen
* Moved LoggerName to core and added macro there
* Renamed Platform traits to Compat traits
* Moved Slf4jLoggerFactory into Sl4j4Logger.Factory trait
@rossabaker
Copy link
Member

This seems good to me, but I don't see that CI ran, nor do I see a place to approve a run for a first-time contributor. 🤔

@rossabaker
Copy link
Member

I added my own commit, and that triggered something that will check the rest.

@rossabaker
Copy link
Member

Okay, looks like we've got binary compatibility issues. Seems like we would have hard to sort these out in 2.x. I don't have time to chase it, but happy to review it if @FunFunFine or someone else can green it up.

@danicheg
Copy link
Member

danicheg commented Jun 5, 2022

@FunFunFine Anton, let me know if you need help with Mima's issues.

…y.scala

Co-authored-by: Daniel Esik <e.danicheg@yandex.ru>
@danicheg danicheg force-pushed the series/1.x-backport-logger-factory branch 2 times, most recently from 8edfafc to 290c72c Compare June 16, 2022 16:02
@danicheg danicheg force-pushed the series/1.x-backport-logger-factory branch from 290c72c to ac8a327 Compare June 16, 2022 16:16
@danicheg
Copy link
Member

I think I beat the final boss. @rossabaker you have done huge work on reviewing this. It'd be cool if you do it once again.

@FunFunFine
Copy link
Author

Thank you guys for taking this, I had quite a tough couple of weeks at work, so you really helped me (and library users).

@rossabaker rossabaker merged commit 42fb409 into typelevel:series/1.x Jun 17, 2022
@rossabaker
Copy link
Member

This is being released as 1.7.0.

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.

4 participants