tag:blogger.com,1999:blog-21612553.post6325155118585447525..comments2024-03-18T20:20:45.704+11:00Comments on robertmaldon: Programmatically Configuring log4j - and the Future of Java LoggingUnknownnoreply@blogger.comBlogger10125tag:blogger.com,1999:blog-21612553.post-28090969374274122622012-08-13T11:51:34.201+10:002012-08-13T11:51:34.201+10:00Thanks, help me a lotThanks, help me a lotThiago Maiahttps://www.blogger.com/profile/00363399134971296817noreply@blogger.comtag:blogger.com,1999:blog-21612553.post-31718626465273981672012-06-11T19:44:57.944+10:002012-06-11T19:44:57.944+10:00Good job.
Thanks !!!Good job.<br />Thanks !!!Upirnoreply@blogger.comtag:blogger.com,1999:blog-21612553.post-40868301680722248852012-06-11T19:44:03.435+10:002012-06-11T19:44:03.435+10:00Good job.Good job.upirnoreply@blogger.comtag:blogger.com,1999:blog-21612553.post-17798476354810810562011-12-14T22:06:07.284+11:002011-12-14T22:06:07.284+11:00Mahesh,
I imagine the simplest way might be to cr...Mahesh,<br /><br />I imagine the simplest way might be to create a custom appender (e.g. copy the code of or inherit from ConsoleAppender) that has conditional logic in it to do log or not log at a particular level for a particular thread. Trying to put the same conditional logic into a Logger could get tricky.Robert Maldonhttps://www.blogger.com/profile/16280163358319153586noreply@blogger.comtag:blogger.com,1999:blog-21612553.post-23886473226223882462011-12-14T03:30:36.141+11:002011-12-14T03:30:36.141+11:00Cam we control setting up level of logger level fo...Cam we control setting up level of logger level for a specific thread conditionally?Mahesh Patrohttps://www.blogger.com/profile/06175615951281691868noreply@blogger.comtag:blogger.com,1999:blog-21612553.post-33744603727106991102010-01-22T23:09:59.816+11:002010-01-22T23:09:59.816+11:00nice worknice workjohnmukkadhttps://www.blogger.com/profile/02367749682556139139noreply@blogger.comtag:blogger.com,1999:blog-21612553.post-80672411912444823362009-11-14T06:30:25.371+11:002009-11-14T06:30:25.371+11:00Your detection of whether log4j is loaded or not i...Your detection of whether log4j is loaded or not is the only example I found anywhere. Thanks!Keithnoreply@blogger.comtag:blogger.com,1999:blog-21612553.post-44582601244249363652009-08-20T18:56:53.571+10:002009-08-20T18:56:53.571+10:00Good howto, thanks man !Good howto, thanks man !Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-21612553.post-23400220457884382342008-11-07T01:39:00.000+11:002008-11-07T01:39:00.000+11:00in my case, only when I invoke appender.activateOp...in my case, only when I invoke appender.activateOptions() can this programatically way work. or there will be an error telling me that "no output stream or file set for the appender"Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-21612553.post-70547366144245846162008-07-31T15:33:00.000+10:002008-07-31T15:33:00.000+10:00logger.debug( "User with account {} failed authent...logger.debug( "User with account {} failed authentication; "<BR/> + "supplied crypted password {} does not match.",<BR/> user.getAccount(), user.crypt(password) );<BR/><BR/>if you debug these code, you will see that the crypt() method will executed as well, the only advantage is that you dont need the concatination of the string.Chrishttps://www.blogger.com/profile/07864448554925965107noreply@blogger.com