I would like to set the log level of all controlle...
# questions
f
I would like to set the log level of all controllers to info. I did it as follows I added it to the logback.xml file below but it doesn't work, does anyone know how to do this?
Copy code
<logger name="grails.app.controllers" level="info">
         <appender-ref ref="STDOUT" />
     </logger>
g
It was working on the previous versions, now it seems it's not working anymore. To log your controllers just log your package like:
<logger name="my-package" level="info">
<appender-ref ref="STDOUT" />
</logger>
f
When I define it by the name of the packages, it works.
Copy code
<logger name="com.example.controller" level="info">
        <appender-ref ref="STDOUT" />
    </logger>
However, I would like to define the log level not by packages but by grails artifacts (controller, services, etc.)
g
It make sense but it doesn’t seem to work anymore, I hope someone else knows how to make it work again. I use a common root package and configure it for all artifacts, in the end in use log levels to filter logs