Code example for LogRecord

Methods: getLevel, getLoggerName, getMessage, getParameters, getResourceBundleName, getSourceClassName, getSourceMethodName, getThrown

0
				VALID_RESOURCE_BUNDLE2,
				"logrb(Level, String, String, String, String, Object) msg", 
				param);
		LogRecord r = (LogRecord) CallVerificationStack.getInstance().pop();
		assertTrue(CallVerificationStack.getInstance().empty());
		assertSame(r.getLoggerName(), this.sharedLogger.getName());
		assertEquals(r.getMessage(),
				"logrb(Level, String, String, String, String, Object) msg"); 
		assertSame(r.getResourceBundleName(), VALID_RESOURCE_BUNDLE2);
		assertSame(r.getSourceClassName(), "sourceClass");
		assertSame(r.getSourceMethodName(), "sourceMethod");
		assertSame(r.getLevel(), Level.INFO);
		assertEquals(1, r.getParameters().length);
		assertSame(param, r.getParameters()[0]);
		assertSame(r.getThrown(), null);
 
		this.sharedLogger.logrb(Level.CONFIG, "sourceClass", "sourceMethod",
				VALID_RESOURCE_BUNDLE2,
				"logrb(Level, String, String, String, String, Object) msg", 
				param);
		assertTrue(CallVerificationStack.getInstance().empty());