Skip to content

Instantly share code, notes, and snippets.

@Rogach
Forked from ers81239/gist:2377425
Created April 13, 2012 14:54
Show Gist options
  • Save Rogach/2377426 to your computer and use it in GitHub Desktop.
Save Rogach/2377426 to your computer and use it in GitHub Desktop.
def LogConfig(configItem: String, configValue: Any) = {
val logString = configValue match {
case configValueMap: Map[_,_] => "Configured " + configItem + " to " + configValueMap.mkString("{",", ","}") + "."
case _ => "Configured " + configItem + " to " + configValue + "."
}
info(logString)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment