tomcat - Configuring Grails Access Logging from run-app -


By using the run-app, the Tomcat-plugin is used in Confetti, how do I access the Grails AccessLogValve in server.xml Can I modify it in existence?

I need development since the production, I will just bump into the battle.

Thank you in advance

You enter 'ConfigureTomcat' event in script / _Events.groovy You can configure in callback for:

  import Org.apache.catalina.valves.AccessLogValve eventConfigureTomcat = {TOMEAC - & gt; Tomcat.host.addValve new AccessLogValve (directory: base based, prefix: 'localhost_access_log.', Pattern: 'normal')}  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -