Project

General

Profile

« Previous | Next » 

Revision 2664

Added by sgarg about 19 years ago

1. Replacing MetaCatUtil.debugMessage or MetaCatUtil.logMetacat call with logMetacat (private Logger object) call
2. Commented out debugMessage()
3. Removed getLog() and earlier old log4j code
4. Removed formattedDebugMessage

View differences:

src/edu/ucsb/nceas/metacat/MetaCatUtil.java
37 37

  
38 38
import org.apache.log4j.Logger;
39 39
import org.apache.log4j.PropertyConfigurator;
40
import org.apache.log4j.BasicConfigurator;
40 41

  
41 42
import edu.ucsb.nceas.dbadapter.AbstractDatabase;
42 43
import edu.ucsb.nceas.utilities.Options;
......
64 65
    private static String[] deniedSubmitters;
65 66

  
66 67
    public static Logger logMetacat = null;
67
        
68

  
69
    private static Logger logInfoMetacat = null;
70
    
68 71
    static {
69 72

  
70 73
        MetaCatUtil.logMetacat = Logger.getLogger("Metacat");
71 74
        PropertyConfigurator.configure(MetaCatServlet.LOG_CONFIG_NAME);
72 75
    	
76
        MetaCatUtil.logInfoMetacat = Logger.getLogger("Metacat");
77
        //BasicConfigurator.configure();
78

  
73 79
    	// Determine our db adapter class and create an instance of that class
74 80
        try {
75 81
            dbAdapter = (AbstractDatabase) createObject(getOption("dbAdapter"));

Also available in: Unified diff