|
|
|
@ -1,5 +1,15 @@
|
|
|
|
package com.evolute.siprp.pagina;
|
|
|
|
package com.evolute.siprp.pagina;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.evolute.utils.error.ErrorLogger;
|
|
|
|
|
|
|
|
import com.evolute.utils.error.Logger;
|
|
|
|
|
|
|
|
import com.evolute.utils.error.LoggerProperties;
|
|
|
|
|
|
|
|
import com.evolute.utils.error.ProjectsEnum;
|
|
|
|
|
|
|
|
import com.evolute.utils.error.ws.WSLogger;
|
|
|
|
|
|
|
|
import com.evolute.utils.network.proxy.EvoProxyObject;
|
|
|
|
|
|
|
|
|
|
|
|
public class SiprpWebLogger
|
|
|
|
public class SiprpWebLogger
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
@ -8,6 +18,28 @@ public class SiprpWebLogger
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void init() throws Exception
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Map< LoggerProperties, String > properties = new HashMap< LoggerProperties, String >();
|
|
|
|
|
|
|
|
properties.put( LoggerProperties.SOFTWARE_NAME, "SIPRP - Web" );
|
|
|
|
|
|
|
|
properties.put( LoggerProperties.SOFTWARE_VERSION, "1" );
|
|
|
|
|
|
|
|
properties.put( LoggerProperties.PROJECT, ProjectsEnum.SIPRP.toString() );
|
|
|
|
|
|
|
|
properties.put( LoggerProperties.PROJECT_NAME, ProjectsEnum.SIPRP.toString() );
|
|
|
|
|
|
|
|
properties.put( LoggerProperties.PROJECT_VERSION, "1" );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String user = "";
|
|
|
|
|
|
|
|
String pass = "";
|
|
|
|
|
|
|
|
String host = "";
|
|
|
|
|
|
|
|
String port = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EvoProxyObject.configSystemProxySelector();
|
|
|
|
|
|
|
|
EvoProxyObject.getProxy( user, pass, host, port );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Logger logger = new WSLogger( properties );
|
|
|
|
|
|
|
|
ErrorLogger.initializeLogger( logger );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void logException( Throwable t )
|
|
|
|
public static void logException( Throwable t )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
System.out.println( "\nSiprpWebLogger . logException() : " );
|
|
|
|
System.out.println( "\nSiprpWebLogger . logException() : " );
|
|
|
|
|