NFC/NfcVirtualTargetFun/src/nfc/sample/virtual/target/Utilities.java
/*
     * Generic logging routine that writes entries to the event log and also to STDOUT when debugging
     */
Generic logging routine that writes entries to the event log and also to STDOUT when debugging
Generic logging routine that writes entries to the event log and also to STDOUT when debugging
public static void log(String logMessage) {
        System.out.println(logMessage);
        try {
            boolean ok = EventLogger.logEvent(MYAPP_ID, logMessage.getBytes("US-ASCII"), EventLogger.INFORMATION);
        } catch(UnsupportedEncodingException e) {
        }
    }
public static void log ( String logMessage ) { System . out . println ( logMessage ) ; try { boolean ok = EventLogger . logEvent ( MYAPP_ID , logMessage . getBytes ( "US-ASCII" ) , EventLogger . INFORMATION ) ; } catch ( UnsupportedEncodingException e ) { } }
Generic logging routine that writes entries to the event log and also to STDOUT when debugging
Generic logging routine that writes entries to the event log and also to STDOUT when debugging