Project

General

Profile

« Previous | Next » 

Revision 0fd8512c

Added by Andreas Kohlbecker about 7 years ago

cleaning up a bit

  • removing unnesscary main log4j.properties
  • suppressing HHH90000003 deprication warning
  • removing commented beans from appContext

View differences:

src/main/resources/log4j.properties
1
###############################################################################
2
#
3
# This log4j.properties file will be used when running executing
4
# cdmlib-remote-webapp directly in a servelet container like jetty
5
#
6
###############################################################################
7
#
8
#
9
# If you are having problems with logging you may debug Log4J initialization,
10
# start the application with a system property log4j.configDebug set to "true".
11
# E.g.:
12
#
13
#     java -Dlog4j.configDebug=true
14
#
15

  
16
log4j.rootLogger=WARN, stdout
17

  
18

  
19
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
20
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
21
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n
22

  
23

  
24
###
25
# cdm
26
###
27
log4j.logger.eu.etaxonomy.cdm = INFO
28

  
29

  
30

  
31
###
32
# springframework
33
###
34
log4j.logger.org.springframework = warn
35
log4j.logger.org.springframework.web.servlet.DispatcherServlet = WARN
36
log4j.logger.org.springframework.web.servlet.mvc.annotation = WARN
37
#log4j.category.org.springframework.web.servlet.mvc.support=DEBUG, stdout
38
log4j.logger.org.springframework.web.servlet.view = WARN
39

  
src/main/webapp/WEB-INF/applicationContext.xml
14 14
       <property name="omit" value="false" />
15 15
    </bean>
16 16
   <context:component-scan base-package="eu/etaxonomy/cdm/ext" />
17
   <context:component-scan base-package="eu/etaxonomy/cdm/remote/vaadin" />
18 17

  
19
   <!--
20
    <import resource="classpath:/eu/etaxonomy/cdm/remote.xml"/>
21
   -->
22 18
<!--    <import resource="classpath:/eu/etaxonomy/cdm/remote-security.xml"/> -->
23 19
    <context:component-scan base-package="eu/etaxonomy/cdm/io">
24 20
        <context:exclude-filter type="regex" expression="eu\.etaxonomy\.cdm\.io\.pesi.*" />
......
51 47
  <!--   
52 48
    <bean class="eu.etaxonomy.cdm.opt.config.LoggingConfigurer">
53 49
    </bean>
54

  
55

  
56
  <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean">
57
    <property name="configLocation" value="classpath:/eu/etaxonomy/cdm/remote/ehcache.xml" />
58
        <property name="shared" value="true"/>
59
    </bean>
60 50
 -->
51
 
61 52
  <bean id="serializableFactory" class="org.springmodules.cache.serializable.XStreamSerializableFactory"/>
62 53

  
63 54
  <bean id="cacheProviderFacade" class="org.springmodules.cache.provider.ehcache.EhCacheFacade">
src/test/resources/log4j.properties
16 16
### *** CDM *** ###
17 17

  
18 18
log4j.logger.eu.etaxonomy.cdm = info
19
# suppress HHH90000003
20
log4j.logger.org.hibernate.orm.deprecation=ERROR
19 21

  

Also available in: Unified diff