Created
July 16, 2013 16:01
-
-
Save seanparsons/6010066 to your computer and use it in GitHub Desktop.
Idea for logging entry into methods.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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