Pre-configured logging profiles
Hi, I'm logging all my events to the same file and I want to be able to switch between logging configurations to follow different flows in my system. Lets say that process A logging is: my.package.one = info my.package.two = debug and process B logging is : my.package.three = info my.package.four = debug is there a way to completely switch between configuration using the properties/XML files? because progrematically I know that I can set the root to 'error' or something like that and than set the needed configurations for my flow Thank you, Noa -- View this message in context: http://old.nabble.com/Pre-configured-logging-profiles-tp26156679p26156679.html Sent from the Log4j - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
Re: FileAppender is not assignable to Appender
Log4j is identifying the classloaders with incompatible versions of the classes referenced. The classpaths are missing so hard for me to deduce more, but you may be able to determine which WAS classloaders in the webapp's classloader hierarchy have been responsible for loading the incompatible versions, which may lead to the reason why this is occuring. If you are running log4j 1.2.6 or later try setting system property log4j.ignoreTCL=true to tell log4j to not-prefer the thread context classloader. Brett On Sun, Nov 1, 2009 at 2:41 PM, chrisgage chrisg...@bellsouth.net wrote: This project started using Spring (and its dependency on commons logging) back in June 2007, but this problem only started this summer, two years later. In those two years it has grown to 200 JSPs and over 1000 classes so it's hard to find an error that refuses to say exactly where it was created. But I do appreciate the contribution, and will check it out... javabrett wrote: Check whether the added JARs include Commons Logging. I notice that the Appender is named after Spring. Spring depends on Commons Logging which is notorious for creating classloading challenges. -- View this message in context: http://old.nabble.com/FileAppender-is-not-assignable-to-Appender-tp26095007p26148077.html Sent from the Log4j - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
Is DailyRollingFileAppender efficient or safe to use if log file is huge?
Hi, I am using log4j 1.2.15. I am pondering between DailyRollingFileAppender and RollingFileAppender. For RollingFileAppender, I can enforce file size limit and MaxBackupIndex. But for DailyRollingFileAppender, i can not limit either. Aside from being difficult to planing disk space usage, does DailyRollingFileAppender cause inefficiency if the log file become huge? In theory, the log4j just keeps a fiel descriptor and append to the end. It should not matter that much if the log file is big or small. Did I miss anything. Any feedback or recommendation is appreciated. Thanks. Shaoxian Yang -- View this message in context: http://old.nabble.com/Is-DailyRollingFileAppender-efficient-or-safe-to-use-if-log-file-is-huge--tp26157806p26157806.html Sent from the Log4j - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
Is DailyRollingFileAppender efficient or safe to use if log file is huge?
Hi, I am using log4j 1.2.15. I am pondering between DailyRollingFileAppender and RollingFileAppender. For RollingFileAppender, I can enforce file size limit and MaxBackupIndex. But for DailyRollingFileAppender, i can not limit either. Aside from being difficult to planing disk space usage, does DailyRollingFileAppender cause inefficiency if the log file become huge? In theory, the log4j just keeps a fiel descriptor and append to the end. It should not matter that much if the log file is big or small. Did I miss anything. Any feedback or recommendation is appreciated. Thanks. Shaoxian Yang -- View this message in context: http://old.nabble.com/Is-DailyRollingFileAppender-efficient-or-safe-to-use-if-log-file-is-huge--tp26157807p26157807.html Sent from the Log4j - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
Is DailyRollingFileAppender efficient or safe to use if log file is huge?
Hi, I am using log4j 1.2.15. I am pondering between DailyRollingFileAppender and RollingFileAppender. For RollingFileAppender, I can enforce file size limit and MaxBackupIndex. But for DailyRollingFileAppender, i can not limit either. Aside from being difficult to plan disk space usage in advance, does DailyRollingFileAppender cause inefficiency if the log file become huge? In theory, the log4j just keeps a fiel descriptor and append to the end. It should not matter that much if the log file is big or small. Did I miss anything? Any feedback or recommendation is appreciated. Thanks. Shaoxian Yang -- View this message in context: http://old.nabble.com/Is-DailyRollingFileAppender-efficient-or-safe-to-use-if-log-file-is-huge--tp26157824p26157824.html Sent from the Log4j - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org
Is DailyRollingFileAppender efficient or safe to use if log file is huge?
Hi, I am using log4j 1.2.15. I am pondering between DailyRollingFileAppender and RollingFileAppender. For RollingFileAppender, I can enforce file size limit and MaxBackupIndex. But for DailyRollingFileAppender, i can not limit either. Aside from being difficult to planing disk space usage, does DailyRollingFileAppender cause inefficiency if the log file become huge? In theory, the log4j just keeps a file descriptor and append to the end. It should not matter that much if the log file is big or small. Did I miss anything. Any feedback or recommendation is appreciated. Thanks. Shaoxian Yang _ Keep your friends updated―even when you’re not signed in. http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_5:092010
AW: Is DailyRollingFileAppender efficient or safe to use if log file is huge?
logfiles up to 200 MB didnt throw any problems (on windows XP and winserver2003 with NTFS). Heri -Ursprüngliche Nachricht- Von: shaoxianyang [mailto:ysxsu...@hotmail.com] Gesendet: Montag, 2. November 2009 21:47 An: log4j-user@logging.apache.org Betreff: Is DailyRollingFileAppender efficient or safe to use if log file is huge? Hi, I am using log4j 1.2.15. I am pondering between DailyRollingFileAppender and RollingFileAppender. For RollingFileAppender, I can enforce file size limit and MaxBackupIndex. But for DailyRollingFileAppender, i can not limit either. Aside from being difficult to plan disk space usage in advance, does DailyRollingFileAppender cause inefficiency if the log file become huge? In theory, the log4j just keeps a fiel descriptor and append to the end. It should not matter that much if the log file is big or small. Did I miss anything? Any feedback or recommendation is appreciated. Thanks. Shaoxian Yang -- View this message in context: http://old.nabble.com/Is-DailyRollingFileAppender-efficient-or-safe-to-use-if-log-file-is-huge--tp26157824p26157824.html Sent from the Log4j - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org