-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add benchmark for JUL agent without source information #1
base: master
Are you sure you want to change the base?
Conversation
@Before | ||
public void testSetup() throws IOException { | ||
LttngLogHandler hndl = new LttngLogHandler(); | ||
hndl.setLogSource(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see, that's what this public method was for!
Hmm, could it be done through a System.getProperty()
, or through a custom constructor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember that after discussion, we noticed it's common for handler classes to also offer setters for properties like this, so we can stay consistent with that.
Signed-off-by: Genevieve Bastien <gbastien@versatic.net>
52269b2
to
e7db4f3
Compare
I added the unit tests to this PR |
*/ | ||
@Test | ||
public void testHandlerOutput() { | ||
assertTrue(session.enableAllEvents()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing one space
import org.lttng.ust.agent.utils.JulTestUtils; | ||
|
||
/** | ||
* Enabled events test for the LTTng-UST JUL log handler, using the legacy API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be updated I think? It doesn't seem to be using the "legacy" API.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm. I did not ever bother trying to modify this javadoc :p
Signed-off-by: Geneviève Bastien <gbastien@versatic.net>
This patch goes with pull request lttng/lttng-ust#46 from lttng-ust
Signed-off-by: Genevieve Bastien gbastien@versatic.net