no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@177 bb69d46d-e84e-40c8-a05a-06db0d633741
Luis Flores 21 years ago
parent 8a8efed397
commit 4550e6d442

@ -153,7 +153,13 @@ public class Main implements Connector
return false;
}
Singleton.setInstance( Singleton.USERNAME, user );
try
{
ErrorLogger.initializeLogger( new SHSTLogger() );
}
catch( Exception ex )
{
}
//Singleton.setInstance( Singleton.USERNAME, user );
siprpTracker = new SIPRPTracker( avisos );
avisos.refresh();

@ -14,8 +14,31 @@ import com.evolute.utils.sql.*;
/**
*
* @author lflores
* MySQL
CREATE TABLE errors
(
id INT NOT NULL AUTO_INCREMENT,
PRIMARY KEY( id ),
date TIMESTAMP NOT NULL DEFAULT 'now()',
type VARCHAR(20),
environment VARCHAR( 255 ),
description TEXT
);
*
*PostgreSQL
CREATE TABLE errors
(
id SERIAL,
PRIMARY KEY( id ),
date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
type VARCHAR(20),
environment VARCHAR( 255 ),
description VARCHAR( 256000 )
)
*/
public class SIPRPLogger implements Logger
public class SHSTLogger implements Logger
{
private final String java = System.getProperty( "java.version" )
+ "-" + System.getProperty( "java.vm.version" );
@ -28,7 +51,7 @@ public class SIPRPLogger implements Logger
private final Executer executer;
/** Creates a new instance of SIPRPLogger */
public SIPRPLogger()
public SHSTLogger()
throws Exception
{
DBManager dbm = ( DBManager )Singleton.getInstance( SingletonConstants.DEFAULT_DBMANAGER );
Loading…
Cancel
Save