Guest User

Untitled

a guest
Jan 24th, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1.  
  2. // log4j configuration
  3. log4j = {
  4. // Example of changing the log pattern for the default console
  5. // appender:
  6. //
  7.  
  8.  
  9. def mypattern = new org.apache.log4j.EnhancedPatternLayout(conversionPattern: '%d{yyyy/MM/dd HH:mm:ss} %c{2} %m%n %throwable{10}')
  10.  
  11. appenders {
  12. 'null' name: 'stacktrace'
  13. rollingFile name:'stdout', maxFileSize:'200MB', file:"/usr/local/log/app-catalina.log", layout:mypattern
  14. rollingFile name:"restClientAppender", maxFileSize:'100MB', file:"/usr/local/log/restclient.log", layout: mypattern
  15. rollingFile name:"memcachedAppender", maxFileSize:'100MB', file:"/usr/local/log/spymemcached.log", layout: mypattern
  16. }
  17.  
  18.  
  19. error memcachedAppender:'net.spy.memcached', additivity: false
  20.  
  21. error restClientAppender:'com.mercadolibre.opensource.frameworks', additivity: false
  22.  
  23. error 'net.bull.javamelody.SessionPropioListener'
  24. error 'org.codehaus.groovy.grails.web.servlet', // controllers
  25. 'org.codehaus.groovy.grails.web.pages', // GSP
  26. 'org.codehaus.groovy.grails.web.sitemesh', // layouts
  27. 'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
  28. 'org.codehaus.groovy.grails.web.mapping', // URL mapping
  29. 'org.codehaus.groovy.grails.commons', // core / classloading
  30. 'org.codehaus.groovy.grails.plugins', // plugins
  31. 'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
  32. 'org.springframework',
  33. 'org.hibernate',
  34. 'net.sf.ehcache.hibernate'
  35.  
  36. // info 'grails.app.service.api.login.LoginService',
  37. // 'grails.app.service.meli',
  38. // 'grails.app.service.vip'
  39. //
  40.  
  41. error 'org.mortbay.log'
  42.  
  43. info "bootstraping"
  44. // info "meli.framework.MeasureLogUtil"
  45. // info "grails.app.controller.meli.vip.component.ShortDescriptionController"
  46.  
  47.  
  48. root{
  49. "stdout"
  50. }
  51. }
Add Comment
Please, Sign In to add comment