public static void log(String s) { if (diag_logger != null) { diag_logger.log(s); } }
@Override public void log( String str ) { if ( DEBUG ){ logger.log( str ); } }
@Override public void messageLogged( int type, String content ) { diagnostic_logger.log( content ); }
private static void diagLoggerLog(String str) { if ( diag_logger == null ){ System.out.println( str ); }else{ diag_logger.log(str); } }
public void logAndOut( Throwable e ) { e.printStackTrace(); log( e ); }
@Override public void debug(String message, Throwable t) { AEDiagnosticsLogger diag_logger = AEDiagnostics.getLogger("v3.CMsgr"); diag_logger.log("[" + id + "] " + message); diag_logger.log(t); if (ConstantsVuze.DIAG_TO_STDOUT) { System.err.println("[" + id + "] " + message); t.printStackTrace(); } }
public static void log(String str) { AEDiagnosticsLogger diag_logger = AEDiagnostics.getLogger("v3.MD"); diag_logger.log(str); if (DEBUG_CACHING) { System.out.println(Thread.currentThread().getName() + "|" + System.currentTimeMillis() + "] " + str); } }
@Override public void log( String s ) { AEDiagnosticsLogger diag_logger = AEDiagnostics.getLogger( LOGGER_NAME ); diag_logger.log( s ); if ( ConstantsVuze.DIAG_TO_STDOUT ){ System.out.println(Thread.currentThread().getName() + "|" + System.currentTimeMillis() + "] " + s); } }
public static void log( String logger_name, String str ) { getLogger( logger_name ).log( str ); }
@Override public void debug(String message) { AEDiagnosticsLogger diag_logger = AEDiagnostics.getLogger("v3.CMsgr"); diag_logger.log("[" + id + "] " + message); if (ConstantsVuze.DIAG_TO_STDOUT) { System.out.println("[" + id + "] " + message); } }
public void log( String s ) { AEDiagnosticsLogger diag_logger = getLogger(); diag_logger.log( s ); }
@Override public void handleEvent(Event event){ //Add a file to the log. AEDiagnosticsLogger dLog = AEDiagnostics.getLogger("AutoSpeed"); String comment = commentBox.getText(); if(comment!=null){ if( comment.length()>0){ dLog.log( "user-comment:"+comment ); commentBox.setText(""); } } } });
public void log( String s, Throwable e ) { AEDiagnosticsLogger diag_logger = AEDiagnostics.getLogger( LOGGER_NAME ); diag_logger.log( s ); diag_logger.log( e ); if ( ConstantsVuze.DIAG_TO_STDOUT ){ System.out.println(Thread.currentThread().getName() + "|" + System.currentTimeMillis() + "] " + s + ": " + Debug.getNestedExceptionMessage(e)); } }
/** * @param string */ public static void debug(String string) { AEDiagnosticsLogger diag_logger = AEDiagnostics.getLogger("v3.PMsgr"); diag_logger.log(string); if (ConstantsVuze.DIAG_TO_STDOUT) { System.out.println(Thread.currentThread().getName() + "|" + System.currentTimeMillis() + "] " + string); } }
public void log( String s ) { AEDiagnosticsLogger diag_logger = getLogger(); diag_logger.log( s ); }
private synchronized static void logClientDiscrepancyToFile(String line_to_log) { if (logger == null) {logger = AEDiagnostics.getLogger("clientid");} try {logger.log(line_to_log);} catch (Throwable e) {Debug.printStackTrace(e);} }
protected void debug(String s) { AEDiagnosticsLogger diag_logger = AEDiagnostics.getLogger("table"); diag_logger.log(SystemTime.getCurrentTime() + ":" + getTableID() + ": " + s); System.out.println(Thread.currentThread().getName() + "." + Integer.toHexString(hashCode()) + "] " + SystemTime.getCurrentTime() + ": " + getTableID() + ": " + s); }
protected void debug(String s) { AEDiagnosticsLogger diag_logger = AEDiagnostics.getLogger("table"); String prefix = SystemTime.getCurrentTime() + ":" + getTableID() + ": r" + getIndex(); if (getParentRowCore() != null) { prefix += "of" + getParentRowCore().getIndex(); } prefix += ": "; diag_logger.log(prefix + s); System.out.println(prefix + s); }