|
|
|
@ -3,7 +3,7 @@ package siprp.images.servlet;
|
|
|
|
import com.evolute.utils.error.ErrorLogger;
|
|
|
|
import com.evolute.utils.error.ErrorLogger;
|
|
|
|
import com.evolute.utils.error.LoggerProperties;
|
|
|
|
import com.evolute.utils.error.LoggerProperties;
|
|
|
|
import com.evolute.utils.error.ProjectsEnum;
|
|
|
|
import com.evolute.utils.error.ProjectsEnum;
|
|
|
|
import com.evolute.utils.error.log4j.DBLogger;
|
|
|
|
import com.evolute.utils.error.ws.WSLogger;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
@ -28,8 +28,15 @@ public class WebImagesLogger
|
|
|
|
map.put( LoggerProperties.PROJECT_NAME, ProjectsEnum.PLANOS_ACTUACAO.toString() );
|
|
|
|
map.put( LoggerProperties.PROJECT_NAME, ProjectsEnum.PLANOS_ACTUACAO.toString() );
|
|
|
|
map.put( LoggerProperties.SOFTWARE_VERSION, "1.1" );
|
|
|
|
map.put( LoggerProperties.SOFTWARE_VERSION, "1.1" );
|
|
|
|
map.put( LoggerProperties.SOFTWARE_NAME, "SIPRP - Planos Actuacao : SIPRPImages (WebImages)" );
|
|
|
|
map.put( LoggerProperties.SOFTWARE_NAME, "SIPRP - Planos Actuacao : SIPRPImages (WebImages)" );
|
|
|
|
// TODO - firewall - must be implemented over http (ws)
|
|
|
|
|
|
|
|
ErrorLogger.initializeLogger( new DBLogger( map ) );
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
ErrorLogger.initializeLogger( new WSLogger( map ) );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
catch ( Exception e )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|