Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. // Java
  2. logger.error("The {}'s {} did not have {}", foo, bar, baz);
  3.  
  4. // Kotlin
  5. logger.error { "The $foo's $bar did not have $baz" }
  6. // This will inline the following code in the call site:
  7. if (isErrorEnabled) error("The $foo's $bar did not have $baz")
  8. // That's why we no longer have to worry about string concatenation in logs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement