AW: HowTo Disable Logging Output for classes using commons.logging
Hello Curt, thanks for the advice. That's definitely the first time I applied to the wrong list. ;o) Thought log4 was only a java project. I searched the quartz devloperlist but they say it's a commons.logging problem so get in touch with commons guys or log4j cheers, Pete -Ursprüngliche Nachricht- Von: Curt Arnold [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 29. August 2006 05:23 An: Log4CXX User Betreff: Re: HowTo Disable Logging Output for classes using commons.logging On Aug 28, 2006, at 3:45 AM, Peter Neu wrote: > Hello, > > I use log4j-1.2.8. In my new project I use quartz. Quartz gives me > a lot of > logging messages that I don't need. It's especially dangerous because > It writes all of this output to the log file of the server. > > > --> log4j.logger.org.quartz=ERROR > log4j.logger.org.apache=ERROR > log4j.appender.cons.Threshold=INFO > > > But still I get the INFO messages in the server log. What do I have > to do? > > Cheers, > Pete Your configuration file assumes that quartz logs to loggers that start with "org.quartz.". Since I'm not familiar with that project, you should check that is really the name of the loggers used by quartz. The log files generated likely have logger name in the output. In addition, the forum is wrong since this is the log4cxx-users mailing list and your question appears to involve an Java application using log4j. I would suggest that you should ask the question on the Quartz developer list (http://sourceforge.net/mail/?group_id=23781)
Re: HowTo Disable Logging Output for classes using commons.logging
On Aug 28, 2006, at 3:45 AM, Peter Neu wrote: Hello, I use log4j-1.2.8. In my new project I use quartz. Quartz gives me a lot of logging messages that I don't need. It's especially dangerous because It writes all of this output to the log file of the server. --> log4j.logger.org.quartz=ERROR log4j.logger.org.apache=ERROR log4j.appender.cons.Threshold=INFO But still I get the INFO messages in the server log. What do I have to do? Cheers, Pete Your configuration file assumes that quartz logs to loggers that start with "org.quartz.". Since I'm not familiar with that project, you should check that is really the name of the loggers used by quartz. The log files generated likely have logger name in the output. In addition, the forum is wrong since this is the log4cxx-users mailing list and your question appears to involve an Java application using log4j. I would suggest that you should ask the question on the Quartz developer list (http://sourceforge.net/mail/?group_id=23781)
Re: [SPAM] Re: memory leaks, when terminate threads
We've seen this also on Solaris and using some commercial memory-test tools, one of my developers had identified a memory leak, and fixed it. We've using 0.9.7 -- a modified version. If you're interested, you can try it out on VC++ and see if it works for you. Renny Koshy President & CEO RUBIX Information Technologies, Inc. www.rubixinfotech.com Mark <[EMAIL PROTECTED] om>To Log4CXX User 08/24/2006 11:01 AM cc Subject Please respond to [SPAM] Re: memory leaks, when "Log4CXX User" terminate threads <[EMAIL PROTECTED] ging.apache.org> I am using the current code, but I've also never been able to use log4cxx in multiple threads in VC++ without experiencing memory leaks (reported both by the VS debugger and Memory Leak Detector). I have posted a few times but have not gotten a solution. I ended up using custom messages to the main thread and logging the thread's messages from there. --- valantines <[EMAIL PROTECTED]> wrote: > > Hi, > > I have little problem with log4cxx. I use own class > Thread and i started > 1000 thread in same time. > In this threads i do logging my code, but if i want > terminate those threds, > i get in my msvc, tons of memory leaks. > > i think maybe its problem, when i terminate threads > but log4cxx still > working and logging and crashed my program. > > i try using releaseRef before i need kill thread, > but least i get access > violation when log4cxx end his job. > > also i used LogManager::shutdown or remove appenders > but isn't this problem. > > Situation looks like: there are some many action in > my threads, when i > comment every logging in this threads and i dont get > any memory leaks > > i used log4cxx 0.9.7 unfortunly i cant used 0.9.8 > > thx for advice! > > re valantines > > > > > > -- > View this message in context: > http://www.nabble.com/memory-leaks%2C-when-terminate-threads-tf2158681.html#a5964004 > Sent from the Log4cxx - Users forum at Nabble.com. > > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
HowTo Disable Logging Output for classes using commons.logging
Hello, I use log4j-1.2.8. In my new project I use quartz. Quartz gives me a lot of logging messages that I don't need. It's especially dangerous because It writes all of this output to the log file of the server. I would like to get rid of this. The logging of quartz uses commons logging which can be manipulated through log4j says this resource: http://jakarta.apache.org/commons/logging/guide.html#Configuring_Log4J So I modified my log4j.properties in this way: log4j.rootLogger=INFO, logfile,cons log4j.appender.cons=org.apache.log4j.ConsoleAppender log4j.appender.logfile=org.apache.log4j.RollingFileAppender log4j.appender.logfile.File=/usr/local/log/accounts.log log4j.appender.logfile.MaxBackupIndex=5 --> log4j.logger.org.quartz=ERROR log4j.logger.org.apache=ERROR log4j.appender.cons.Threshold=INFO But still I get the INFO messages in the server log. What do I have to do? Cheers, Pete