forked from Coded/SIPRP
git-svn-id: https://svn.coded.pt/svn/SIPRP@1700 bb69d46d-e84e-40c8-a05a-06db0d633741
parent
b1a48fc639
commit
2b9e0a2231
@ -0,0 +1,17 @@
|
|||||||
|
package com.evolute.siprp.pagina;
|
||||||
|
|
||||||
|
public class SiprpWebLogger
|
||||||
|
{
|
||||||
|
|
||||||
|
private SiprpWebLogger()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void logException( Throwable t )
|
||||||
|
{
|
||||||
|
System.out.println( "\nSiprpWebLogger . logException() : " );
|
||||||
|
t.printStackTrace();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -1,36 +0,0 @@
|
|||||||
package com.evolute.siprp.pagina;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
|
|
||||||
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 SiprpWebLoggerInitializer
|
|
||||||
{
|
|
||||||
|
|
||||||
public static void init() throws Exception
|
|
||||||
{
|
|
||||||
HashMap< LoggerProperties, String > properties = new HashMap< LoggerProperties, String >();
|
|
||||||
properties.put( LoggerProperties.SOFTWARE_NAME, "SIPRP - siprpWeb" );
|
|
||||||
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 );
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Loading…
Reference in new issue