forked from Coded/SIPRP
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.3 KiB
50 lines
1.3 KiB
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
|
|
{
|
|
|
|
private 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 )
|
|
{
|
|
System.out.println( "\nSiprpWebLogger . logException() : " );
|
|
t.printStackTrace();
|
|
}
|
|
|
|
}
|