Project

General

Profile

« Previous | Next » 

Revision b4229a50

Added by Andreas Müller almost 2 years ago

cleanup and javadoc

View differences:

cdmlib-commons/src/main/resources/log4j.xml
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<Configuration>
3 3
  <Appenders>
4
    <File name="FILE" fileName="cdmlib-commons.log" append="true" header="%d{dd MMM yyyy}">
5
      <PatternLayout pattern="%d{ABSOLUTE} %5p %c{1}:%L - %m%n"/>
4
    <File name="FILE" fileName="cdmlib-commons.log" append="true"">
5
      <!-- header and footer not tested, taken from https://stackoverflow.com/questions/24553348/how-to-produce-a-header-row-in-log4j2 -->
6
      <PatternLayout pattern="%d{ABSOLUTE} %5p %c{1}:%L - %m%n" header="%d{dd MMM yyyy} footer="XXX"/>
6 7
    </File>
7 8
    <Console name="STDOUT" target="SYSTEM_OUT">
9
      
8 10
      <PatternLayout pattern="%d{ABSOLUTE} %5p %c{1}:%L - %m%n"/>
9 11
    </Console>
10 12
  </Appenders>
......
14 16
      <!-- <AppenderRef ref="FILE"/> -->
15 17
    </Root>
16 18
    <Logger name="eu.etaxonomy.cdm.common" level="warn"/>
19
    <!-- suppress HHH90000003 (but be aware there might be other deprecations) -->
17 20
    <Logger name="org.hibernate.orm.deprecation" level="error"/>  <!-- additivity="false" -->
18 21
  </Loggers>
19 22
</Configuration>
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/mapping/DbImportDoiMapper.java
9 9

  
10 10
package eu.etaxonomy.cdm.io.common.mapping;
11 11

  
12
import org.apache.logging.log4j.LogManager;import org.apache.logging.log4j.Logger;
12
import org.apache.logging.log4j.LogManager;
13
import org.apache.logging.log4j.Logger;
13 14

  
14 15
import eu.etaxonomy.cdm.common.DOI;
15 16
import eu.etaxonomy.cdm.io.common.DbImportStateBase;
......
22 23
public class DbImportDoiMapper extends DbSingleAttributeImportMapperBase<DbImportStateBase<?,?>, CdmBase>{
23 24

  
24 25
	@SuppressWarnings("unused")
25
	private static final Logger logger = LogManager.getLogger(DbImportDoiMapper.class);
26
	private static final Logger logger = LogManager.getLogger();
26 27

  
27 28
	public static DbImportDoiMapper NewInstance (String dbAttributeString, String cdmAttributeString) {
28 29
		boolean obligatory = false;
cdmlib-remote-webapp/src/main/resources/log4j.xml
1 1
<?xml version="1.0" encoding="UTF-8"?>
2 2
<!-- ###############################################################################
3 3
#
4
# This log4j.properties file will be used when running executing
5
# cdmlib-remote-webapp directly in a servelet container like jetty
4
# This log4j.xml file will be used when running executing
5
# cdmlib-remote-webapp directly in a servelet container like jetty.
6
# But be aware, the CDM Server has its own logging configuration file.
6 7
#
7 8
###############################################################################
8 9
#

Also available in: Unified diff