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

Add support for Any (like in println) #152

Open
shvimas opened this issue Mar 17, 2019 · 2 comments
Open

Add support for Any (like in println) #152

shvimas opened this issue Mar 17, 2019 · 2 comments

Comments

@shvimas
Copy link

shvimas commented Mar 17, 2019

Please add support of Any type in logging functions, this should be easy and would be very convenient.

import com.typesafe.scalalogging.StrictLogging

object Main extends App with StrictLogging {
  println(1)      // works fine
  logger.info(1)  // causes compiler error
}
@zorba128
Copy link

Vote against. We have great type system, and this is like step back.
I'd say its println() that should be fixed to accept strings only :).

@jxnu-liguobin
Copy link
Collaborator

-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants