Code example for Logger

Methods: addHandler, setUseParentHandlers

0
					} catch (IOException e) {
						Log.e(TAG, e.getMessage());
					} 
					if (sLogFileHandler != null) {
						sLogger = Logger.getLogger("Wapdroid");
						sLogger.setUseParentHandlers(false);
						sLogger.addHandler(sLogFileHandler);
						sLogFileHandler.setFormatter(new SimpleFormatter(){
							@Override 
							public String format(LogRecord record) {
								return new java.util.Date() + " " + record.getLevel() + " " + record.getMessage() + "\r\n";
							} 
						}); 
					} 
				} 
			} 
		} 
	} 
	 
	private static boolean hasLogger() { 
		return sLogFileHandler != null;