APISonar


org.eclipse.equinox.log.ExtendedLogService.log

> org > eclipse > equinox > log > ExtendedLogService > log
org APIs eclipse APIs equinox APIs log APIs ExtendedLogService APIs log APIs

Example 1
public void testLogServiceLog_3_12() {
		ExtendedLogService service = getService(ExtendedLogService.class);
		service.log(SingleSlf4JService.LOG_INFO, "Log Info");
		try {
			throw new IllegalArgumentException(TEST_EXCEPTION_MESSAGE);
		} catch (Exception e) {
			service.log(SingleSlf4JService.LOG_WARNING, "Log Warn", e);
		}
		assertSlf4J().received(Arrays.asList("Log Warn", TEST_EXCEPTION_MESSAGE));
		assertSlf4J().notReceived("Log Info");
		assertEclipse().received(Arrays.asList("Log Warn", TEST_EXCEPTION_MESSAGE, "Log Info"));
	}