<div dir="ltr">Hi James,<div><br></div><div>Hmm I see. One Final question. When an agent starts up with the JVM I have seen this as well </div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12px">-Xbootclasspath/p:jboss-logmanager-<VERSION>.jar;log4j-jboss-logmanager-<VERSION>.jar.</span></div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12px"><br></span></div><div><span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:12px">So when we don't provide these arguments at startup and the agent attaches later, the log4j manager will not be present. So I would have to alter the LogManager object or something like that. Changing the system property that points to these guys is not going to make it work right? Or am I understanding this wrong and only one of them is used (whichever is found first).</span></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br></div><div dir="ltr">Thanks</div></div><div>./Sam</div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Nov 15, 2018 at 8:46 AM James Perkins <<a href="mailto:jperkins@redhat.com">jperkins@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi Sam,<div>It just depends if the any method on the java.util.logging.LogManager gets invoked before JBoss Modules sets the java.util.logging.manager=org.jboss.logmanager.LogManager system property. This happens fairly early in the main entry point of jboss-modules.</div><div><br></div><div>[1]: <a href="https://github.com/jboss-modules/jboss-modules/blob/1.8.6.Final/src/main/java/org/jboss/modules/Main.java#L520-L528" target="_blank">https://github.com/jboss-modules/jboss-modules/blob/1.8.6.Final/src/main/java/org/jboss/modules/Main.java#L520-L528</a></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 14, 2018 at 6:45 PM Sam Thomas <<a href="mailto:sam.thomas@broadcom.com" target="_blank">sam.thomas@broadcom.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="auto">Hi James,</div><div dir="auto"><br></div><div dir="auto">Oh I see, that makes total sense - since premain() executes before LogManager is configured. But when agentmain() is executes it’s afterwards. I wouldn’t need to replicate this behavior. I would probably have add a new one if I don’t get one that I need. Am I correct? </div></div><div dir="auto"><br></div><div dir="auto">Thanks</div><div dir="auto">./Sam</div><div><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 14, 2018 at 11:38 PM James Perkins <<a href="mailto:jperkins@redhat.com" target="_blank">jperkins@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'm not sure I follow. The only time the log manager is required to be on the boot class path is if the agent creates a logger before the java.util.logging.LogManager is configured.</div><br><div class="gmail_quote"></div><div class="gmail_quote"><div dir="ltr">On Tue, Nov 13, 2018 at 6:17 PM Sam Thomas <<a href="mailto:sam.thomas@broadcom.com" target="_blank">sam.thomas@broadcom.com</a>> wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I understand when starting jboss you can supply the above to specify the logmanager. If this is not supplied during start up and an agent connects to jboss during runtime using agentmain(), how can I replicate the -Xbootclasspath/p: behavior during runtime? </div><div><div dir="ltr" class="m_2690444188490786690m_7368447809141338560m_6944036773809232850m_-2440985312157020983gmail-m_-8695939168174115946gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><br></div><div dir="ltr">Thanks and Regards</div></div><div>Sam Thomas</div></div></div></div></div></div></div></div></blockquote></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
_______________________________________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org" target="_blank">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_2690444188490786690m_7368447809141338560m_6944036773809232850gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>James R. Perkins</div><div>JBoss by Red Hat</div></div></div></div></div>
</blockquote></div></div>-- <br><div dir="ltr" class="m_2690444188490786690m_7368447809141338560gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br></div><div dir="ltr">Thanks</div></div><div>./Sam</div></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_2690444188490786690gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>James R. Perkins</div><div>JBoss by Red Hat</div></div></div></div></div>
</blockquote></div>