Create the appenders as a file (or rollFile, etc.):
appenders {
file name: "logfile1", file: "/path/to/logfile1.logs"
file name: "logfile2", file: "/path/to/logfile2.logs"
}
and then use the Map syntax to separate the two controllers into separate applications:
debug logfile1: "grails.app.controller.package.Controller1",
logfile2: "grails.app.controller.package.Controller2"
See http://grails.org/doc/latest/guide/3.%20Configuration.html#3.1.2%20Logging for more details .
source
share