Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Java
- logger.error("The {}'s {} did not have {}", foo, bar, baz);
- // Kotlin
- logger.error { "The $foo's $bar did not have $baz" }
- // This will inline the following code in the call site:
- if (isErrorEnabled) error("The $foo's $bar did not have $baz")
- // That's why we no longer have to worry about string concatenation in logs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement