Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am vbmudalige on github.
  • I am vidura (https://keybase.io/vidura) on keybase.
  • I have a public key ASCS1_Ln24aYe01Ypzl7uSxLtH5BIyrZnlMkjYtDpdGlggo

To claim this, I am signing this object:

@vbmudalige
vbmudalige / gist:1fdd73022c086244bf4052a88c7017f9
Created June 17, 2018 15:17 — forked from theothermattm/gist:5277168
SLF4J Parameterized Logging Example
// this
if ( logger.isDebugEnabled() ) {
logger.debug("Some code with a parameter: " + param1 + " - " + param2 + " - " + param3);
}
// becomes this
logger.debug("Some code with a parameter: {} - {} - {}", param1, param2, param3");