Skip to content

Instantly share code, notes, and snippets.

@seanparsons
Created July 16, 2013 16:01
Show Gist options
  • Save seanparsons/6010066 to your computer and use it in GitHub Desktop.
Save seanparsons/6010066 to your computer and use it in GitHub Desktop.
Idea for logging entry into methods.
def logEntry() = macro logEntryImpl
def method(param1: String, param2: Int): String = {
logEntry()
param1 * param2
}
// I'd want
// logEntry()
// to be replaced with
// logger.debug("method(param1 = {}, param2 = {})", Array(param1, param2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment