You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a few generic libraries that we use across a variety of projects that makes extensive usage of scalalogging. As it turns out, we need to migrate to scala 2.11 in some projects while some others will stay behind for a few months.
I was able to support both scala versions with no code changes at all, except for scalalogging. I minimized these changes to one file where I simply hide the diverging import. This is how it looks:
However, this needs to be replicated into several other libraries, and complicates our builds quite a bit. We are thus hoping that perhaps this tiny interface could be added directly to scalalogging (the older package) so as to allow the exact same import as what the newer scala-logging library requires.
This could help other users of this library who are looking at upgrading and may need to support both versions for a while?
Otherwise, we'll proceed to add this hack everywhere and change our build processes.
Thanks!
The text was updated successfully, but these errors were encountered:
We have a few generic libraries that we use across a variety of projects that makes extensive usage of scalalogging. As it turns out, we need to migrate to scala 2.11 in some projects while some others will stay behind for a few months.
I was able to support both scala versions with no code changes at all, except for scalalogging. I minimized these changes to one file where I simply hide the diverging import. This is how it looks:
with scala 2.10 (scalalogging):
with scala 2.11 (scala-logging):
However, this needs to be replicated into several other libraries, and complicates our builds quite a bit. We are thus hoping that perhaps this tiny interface could be added directly to scalalogging (the older package) so as to allow the exact same import as what the newer scala-logging library requires.
This could help other users of this library who are looking at upgrading and may need to support both versions for a while?
Otherwise, we'll proceed to add this hack everywhere and change our build processes.
Thanks!
The text was updated successfully, but these errors were encountered: