Skip to content

Conversation

@mosyp
Copy link

@mosyp mosyp commented Jul 18, 2017

Fixes #38
When using standard sl4j interpolator and Any args it fails:

logger.debug("test {} and {} and {}", 1, 2, 3)
[error] overloaded method value debug with alternatives:
  (x$1: org.slf4j.Marker,x$2: String,x$3: Object*)Unit 
  (x$1: org.slf4j.Marker,x$2: String,x$3: Any,x$4: Any)Unit 
  (x$1: String,x$2: Object*)Unit
 cannot be applied to (String, Int, Int, Int)

#87 brings optional mapping to AnyRef but only for standard scala string interpolation. This PR moves formatting args to be applied before each log call but not only for scala string interpolation

Box `Any` to `AnyRef` before each call to underlying logger
@analytically analytically merged commit 557c21b into lightbend-labs:master Jul 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants