Do you also have log4j-core in your plugin? What other dependencies do you have?
On Wed, Oct 21, 2020 at 9:48 AM [email protected] <[email protected]> wrote: > > Hi Matt, > > Thanks for reply. > I am running mvn hpi:run for running jenkins locally. so it includes only > jenkins standard plugin. so no audit-log plugin tool , i am using. > It creates log file on local machine but no log is written. > but It successfully logs on jenkins system log. > I have also included an appender by providing TaskListener.getLogger() > printStream as we can add output stream as appender. > to log on jenkins console but it does not work > > Thanks, > Varun > On Wednesday, 21 October 2020 at 19:52:23 UTC+5:30 [email protected] wrote: >> >> Are you using the audit-log plugin, too? That specifies a log4j2 >> config which probably overrides anything you're using. >> >> On Wed, Oct 21, 2020 at 9:04 AM [email protected] >> <[email protected]> wrote: >> > >> > Hi, >> > >> > I am trying to use Log4j2 for looging in jenkins plugin , as it includes >> > some jar file, >> > which uses log4j2 for logging. >> > when I independently run jar, logging is working fine. >> > But when I include jar in jenkins Plugin, it is not logging any log. >> > What may be issue, i have also kept log4j2 properties file in resources >> > folder, still not able >> > to log. can anyOne please help me here? >> > >> > Thanks, >> > Varun >> > >> > -- >> > You received this message because you are subscribed to the Google Groups >> > "Jenkins Developers" group. >> > To unsubscribe from this group and stop receiving emails from it, send an >> > email to [email protected]. >> > To view this discussion on the web visit >> > https://groups.google.com/d/msgid/jenkinsci-dev/97b5066e-c2c3-48a4-b316-12152bf390cen%40googlegroups.com. >> >> >> >> -- >> Matt Sicker >> Senior Software Engineer, CloudBees > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-dev/e67c56db-a8d8-4163-8970-dea7bf1bc59en%40googlegroups.com. -- Matt Sicker Senior Software Engineer, CloudBees -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAEot4oywr3pZG74T0mWeUn1N1e3wK-VGOCjXwNps1Oq269UdEw%40mail.gmail.com.
