If the logger is currently enabled for the WARNING message level then the given message is forwarded to all the registered output Handler objects.
@param msg The string message (or a key in the message catalog)
113114115116117118119120121122123
try { SocketBufferHandler sbh=new SocketBufferHandler("localhost",4321); lr=Logger.getLogger("TEST"); lr.addHandler(sbh); lr.setUseParentHandlers(false); lr.warning("Start"); } catch (IOException e) { e.printStackTrace(); System.exit(0); } f.addWindowListener( new WindowAdapter() {
135136137138139140141142143144145
if (location != null) plugins.add(location); } if (plugins.size() <= 0) { log .warning(Globals .lang("No plugins were found in the following folders:") + "\n " + Util.join(directoriesToSearch .toArray(new String[directoriesToSearch.size()]),
7980818283848586878889
stmt.execute(sql); } } } catch (SQLException se) { msg = "SQL error: " + se.getMessage(); log.warning(msg); } finally { try { DbUtils.close(rsetTables); DbUtils.close(rsetImportedKeys); DbUtils.close(conn);
8788899091929394959697
DbUtils.close(rsetTables); DbUtils.close(rsetImportedKeys); DbUtils.close(conn); } catch (SQLException se) { msg = "SQL error: " + se.getMessage(); log.warning(msg); } } } public static void main(String[] args) {
5556575859606162636465
logger.severe("CRITICAL ERROR: UNABLE TO GET ANY INTERFACE NAME FOR " + plugin); return "ERROR"; } if (primaryInterfaces.size() > 1) { logger.warning("Multiple plugin names found ... that is very bad and means your export names will be unstable!"); } Class<? extends Plugin> next = primaryInterfaces.iterator().next(); return next.getCanonicalName();
sql = "DROP TABLE " + tableName; stmt.execute(sql); } } catch (SQLException se) { msg = "SQL error: " + se.getMessage(); log.warning(msg); } finally { try { DbUtils.close(rsetTables); DbUtils.close(rsetImportedKeys); DbUtils.close(conn);
121122123124125126127128129130
DbUtils.close(rsetTables); DbUtils.close(rsetImportedKeys); DbUtils.close(conn); } catch (SQLException se) { msg = "SQL error: " + se.getMessage(); log.warning(msg); } } } }
133134135136137138139140141142143
tableMetaDataMap.put(tableName, tableList); return tableList; } catch (SQLException se) { msg = "SQL error: " + se.getMessage(); log.warning(msg); throw new SQLException(msg); } finally { if (stmt != null) { stmt.close(); }
198199200201202203204205206207208
String className = setup.getServerClassName(); logger.fine("Attempting to load cell mo: " + className); CellMO cellMO = CellMOFactory.loadCellMO(className); if (cellMO == null) { /* Log a warning and move onto the next cell */ logger.warning("Unable to load cell MO: " + className ); sender.send(clientID, new ErrorMessage(editMessage.getMessageID(), "Unable to load cell MO: " + className)); return; }
245246247248249250251252253254255
// Find the cell object given the ID of the cell. If the ID is // invalid, we just log an error and return. CellID cellID = ((CellDeleteMessage)editMessage).getCellID(); CellMO cellMO = CellManagerMO.getCell(cellID); if (cellMO == null) { logger.warning("No cell found to delete with cell id " + cellID); return; } // Find out the parent of the cell. This may be null if the cell is // at the world root. This determines from where to remove the cell