@Override public void run() { // TODO message SLF4JLoggerProxy.info(STARTUP_CATEGORY, "Shutting down"); try { killProcesses(); } catch (InterruptedException ignored) {} } });
@Override public void setStatus(MarketDataProvider inProvider, ProviderStatus inStatus) { SLF4JLoggerProxy.info(this, "{} reports {}", inProvider, inStatus); providerStatus.put(inProvider, inStatus); } /**
@Override public void publishTo(Object inData) { SLF4JLoggerProxy.info(CATEGORY, inData.toString()); } }
/** * Announces summary information about the host. */ private void summary() { SLF4JLoggerProxy.info(this, "{} {} {} {} processors {} max heap RAM", osMBean.getName(), osMBean.getVersion(), osMBean.getArch(), osMBean.getAvailableProcessors(), Runtime.getRuntime().totalMemory()); } /**
newOrReplaceOrder.setPegToMidpoint(false); modified = true; SLF4JLoggerProxy.info(MarketDataManagerImpl.this, "Repricing {} to {}", newOrReplaceOrder.getOrderID(),
/** * Log port user information. */ private void logPortUsers() { Table table = new Table(2, BorderStyle.CLASSIC_COMPATIBLE_WIDE, ShownBorders.ALL, false); table.addCell(Messages.PORTS_IN_USE.getText(), cellStyle, 2); table.addCell(Messages.PORT.getText(), cellStyle); table.addCell(Messages.DESCRIPTION.getText(), cellStyle); for(PortDescriptor portDescriptor : portUsers) { table.addCell(String.valueOf(portDescriptor.getPort()), cellStyle); table.addCell(portDescriptor.getDescription(), cellStyle); } SLF4JLoggerProxy.info(this, "{}{}", //$NON-NLS-1$ System.lineSeparator(), table.render()); } /**
initialize(factory); SLF4JLoggerProxy.info(this, mModules.toString());