Skip to content

Instantly share code, notes, and snippets.

@ers81239
Created April 13, 2012 14:54
Show Gist options
  • Save ers81239/2377425 to your computer and use it in GitHub Desktop.
Save ers81239/2377425 to your computer and use it in GitHub Desktop.
def LogConfig(configItem: String, configValue: Any) = {
configValue match {
case configValueMap: Map[_,_] => val logString = "Configured " + configItem + " to " + configValueMap.mkString("{",", ","}") + "."
case _ => val logString = "Configured " + configItem + " to " + configValue + "."
}
info(logString)
}
@aloiscochard
Copy link

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