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

Scala 2.10 version of the scala-logging not in Maven Central? #4

Closed
rxin opened this issue Apr 11, 2014 · 8 comments
Closed

Scala 2.10 version of the scala-logging not in Maven Central? #4

rxin opened this issue Apr 11, 2014 · 8 comments

Comments

@rxin
Copy link

@rxin rxin commented Apr 11, 2014

I couldn't find the logging library from Maven Central or Sonatype using the dependency specified in the README:

"com.typesafe.scala-logging" %% "scala-logging-slf4j" % "2.0.1"

Searching Maven Central returns only the Scala 2.11-RC versions of scala-logging. Is there a different place to look?

http://search.maven.org/#search%7Cga%7C1%7Ccom.typesafe%20logging

There is a scalalogging-slf4j for Scala 2.10, but the version only goes up to 1.1.0, not the 2.x released.

http://mvnrepository.com/artifact/com.typesafe/scalalogging-slf4j_2.10

Thanks.

@hseeberger
Copy link
Contributor

@hseeberger hseeberger commented Apr 12, 2014

Have you read the README? Under prerequisites it says Scala 2.11.

The old scalalogging (https://github.com/typesafehub/scalalogging) for Scala 2.10 is end of life.

@rxin
Copy link
Author

@rxin rxin commented Apr 13, 2014

Thanks for the prompt reply. It is pretty confusing to potential users because when we go to the old repo, it just says it is end of life and please move to a new repository.

This leads to confusions, such as the following question on the old repo: typesafehub/scalalogging#42

A few more questions:

  1. Do you expect other projects to use the 2.10 version from the old, discontinued repo?
  2. Are there any plans to have a version of scala-logging that supports both 2.10 and 2.11? Otherwise it makes it harder for downstream projects to cross-build for multiple Scala versions.

@hseeberger
Copy link
Contributor

@hseeberger hseeberger commented Apr 13, 2014

Scala Logging uses Scala Macros, which have been experimental in 2.10 and are still in 2.11. I'm pretty sure they won't go away, but they could change in ways that introduce breaking changes to any code using them. Anyway, I think one should consider any library which is using Scala Macros as experimental, i.e. expect some uncomfortable changes. Having said that, I think that Scala Logging 2.x will remain pretty stable.

Regarding your questions: If someone wants to use Scala Logging with Scala 2.10, then it has to be ScalaLogging 1.x (no space, no dash, old version). There are no plans to support a version of Scala Logging that supports both, Scala 2.10 and Scala 2.11. In particular ScalaLogging 1.x is end of life, i.e. won't be maintained any longer.

@marmbrus
Copy link

@marmbrus marmbrus commented Apr 14, 2014

While I understand that macros are experimental and the interfaces might change in future releases, this level of churn is making it really hard for those of us who are trying to convince others that typesafe is building a stable ecosystem around Scala.

No where in the README (for either version of scala logging) does it say that because this library is based on macros, the library itself is "experimental" also. Its one thing to change experimental interfaces to the compiler, but the logging interface seems pretty set in stone.

I falsely assumed that because typesafe was releasing this library there would at least continue to be source compatible versions of it as long as releases of the 2.10.x branch were still actively being made. Now we are going to have to reevaluate using it at all.

Should I assume that any of the projects on the typesafehub could also be EOL-ed at any time?

@mdedetrich
Copy link

@mdedetrich mdedetrich commented Apr 21, 2014

Is it documented anywhere that libraries that use experimental features are also implicitly considered experimental as well?

@rossabaker
Copy link

@rossabaker rossabaker commented Apr 23, 2014

I wish this would be reconsidered. Cross building several projects between Scala 2.10 and Scala 2.11, this is the lone dependency that demands more effort than a simple %%.

@hseeberger
Copy link
Contributor

@hseeberger hseeberger commented Apr 23, 2014

It's technically impossible, since Scala Logging 2.x is using macro features only available in Scala 2.11.

@carlosmarin
Copy link

@carlosmarin carlosmarin commented Mar 21, 2017

Since this came at the top of my google search, for others trying to do logging in Scala 2.x (< 2.11).

Use:

import com.typesafe.scalalogging.slf4j.Logger
import org.slf4j.LoggerFactory
val logger = Logger(LoggerFactory.getLogger("TheLoggerName"))

And @ build.sbt (libraryDependencies):
"com.typesafe" %% "scalalogging-slf4j" % "1.1.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

No branches or pull requests

6 participants