Created
May 16, 2012 15:20
-
-
Save eliotsykes/2711165 to your computer and use it in GitHub Desktop.
Grails Debug Filter - log requests
This file contains 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
// Put me in grails-app/conf/DebugFilters.groovy | |
class DebugFilters { | |
def filters = { | |
all(controller:'*', action:'*') { | |
before = { | |
log.error "${request.method}: $request.forwardURI $request.params" | |
} | |
after = { Map model -> | |
} | |
afterView = { Exception e -> | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment