Re: Best Place to place log files

2011-02-05 Thread Thorbjørn Ravn Andersen
interface for. From log4j you can either write an appender mapping to java.util.logging, or use slf4j modules to channel log4j-slf4j-java.util.logging. -- Thorbjørn Ravn Andersen ...plus... Tubular Bells! - To unsubscribe

Re: Omit xml part

2010-11-02 Thread Thorbjørn Ravn Andersen
not the one field/property containing the binary data.. can i configure Log4j to just not log that line/property of the xml message? Not immediately, but you can use the XSLT implementation available in the Java Runtime to remove the binary value from your XML before logging it. -- Thorbjørn Ravn

Re: locating my log4j.properties file

2010-10-09 Thread Thorbjørn Ravn Andersen
of this JDK which may cause _other_ Java programs using this JDK to unexpectantly change behaviour causing bugs that can be very hard to find. What is the reason for you not just having an extra jar in your classpath? -- Thorbjørn Ravn Andersen ...plus... Tubular Bells

Re: High CPU usage impact to log4j

2009-06-24 Thread Thorbjørn Ravn Andersen
Arica skrev den 24-06-2009 08:22: 90% CPU usage. I really want to know that my JVM is doing...I know I can do hanks. Attach to the JVM with jvisualvm (available in the Java 6 JDK) -- Thorbjørn Ravn Andersen ...plus... Tubular Bells

Re: log4j v1.2.14 compatible with Java 1.6?

2009-06-10 Thread Thorbjørn Ravn Andersen
Lesley Tay skrev den 10-06-2009 04:45: By weird I mean null characters being printed out to the log at random times: Do these random times coincide with the machines being booted? -- Thorbjørn Ravn Andersen ...plus... Tubular Bells

Re: Call for feedback

2009-04-28 Thread Thorbjørn Ravn Andersen
fingerprinting works? -- Thorbjørn Ravn Andersen ...plus... Tubular Bells! - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org

Re: Processing XML log files generated using log4j

2009-03-27 Thread Thorbjørn Ravn Andersen
allow you to read in these XMl snippets and see them. -- Thorbjørn Ravn Andersen ...plus... Tubular Bells! - To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h

Re: Can't get basic Zeroconf example to work.

2009-01-21 Thread Thorbjørn Ravn Andersen
a simple run me to test zeroconf-application which could also be run over webstart so it is very simple to run these two applications next to each other and see that stuff works? That would be really great :) Thanks a lot if you do :) Regards, -- Thorbjørn Ravn Andersen ...plus... Tubular

Re: SocketHubAppender can not bind on Solaris?

2008-12-02 Thread Thorbjørn Ravn Andersen
be using NIS+, could that be blocking my binding to it? Perhaps you should learn to use the Solaris version of netstat as it can tell you who sits on the port. It might also be a permission problem? -- Thorbjørn Ravn Andersen ...plus... Tubular Bells

Re: SocketHubAppender can not bind on Solaris?

2008-12-02 Thread Thorbjørn Ravn Andersen
? To ensure stuff works you need a Connection refused response to the telnet. -- Thorbjørn Ravn Andersen ...plus... Tubular Bells! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Error while loading OracleDriver

2008-11-19 Thread Thorbjørn Ravn Andersen
, but for DataBase i am getting following error:- log4j:ERROR Failed to load driver java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver Is the Oracle JDBC driver available in the classpath for the class trying to log using JDBCAppender? -- Thorbjørn Ravn Andersen ...plus... Tubular Bells

Re: Problems with rollover of RollingFileAppender - data loss

2008-11-17 Thread Thorbjørn Ravn Andersen
[EMAIL PROTECTED] skrev den 16-11-2008 23:47: The problem that I have encountered is that I have observed that sometimes the log files are getting partially wiped. I am putting this down to the fact that the JVM might be shutting down whilst the rolling activity is taking place - resulting in

Re: Problem in using SMTPAppender with gmail

2008-10-03 Thread Thorbjørn Ravn Andersen
RMMM skrev den 28-09-2008 05:46: I succeeded in getting this to work (using log4j to send logging messages by smtp over ssl). I think it's appalling that log4j doesn't do this, and it isn't mentioned anywhere in the documentation. I even bought the complete manual for $20, but it doesn't say

Re: HOw to replace the system.out.println

2008-09-02 Thread Thorbjørn Ravn Andersen
the actual nitty gritty stuff for later. -- Thorbjørn Ravn Andersen ... plus... Tubular Bells! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: HOw to replace the system.out.println

2008-09-02 Thread Thorbjørn Ravn Andersen
statements? -- Thorbjørn Ravn Andersen ... plus... Tubular Bells! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: missing debug statements when i changed to RollingFileAppender

2008-08-21 Thread Thorbjørn Ravn Andersen
YesKay skrev den 21-08-2008 16:24: Never mind... found the problem. For the benefit of those who search the archives in the future, what was the problem and the solution? -- Thorbjørn Ravn Andersen ... plus... Tubular Bells

Re: How is the log4j.xml file located when running a program using Log4J - no workie

2008-08-11 Thread Thorbjørn Ravn Andersen
CheapLisa skrev den 11-08-2008 21:55: I am not running inside maven (just yet but that is the next step). Right now I want to run inside my IDE. The log4j.xml file needs to be in your classpath to be found. Is it? -- Thorbjørn Ravn Andersen ... plus

Re: Need to create a thread dump in OAS

2008-08-06 Thread Thorbjørn Ravn Andersen
this is often done by sending a signal to the JVM using the kill command. -- Thorbjørn Ravn Andersen ... plus... Tubular Bells! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Logging messages using java 1.5 format string

2008-08-04 Thread Thorbjørn Ravn Andersen
as the logging interface and use log4j as the backend. You can then call log.debug(Name: {} Size {}, Foo, new Integer(10)); -- Thorbjørn Ravn Andersen ... plus... Tubular Bells! - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: ConsoleAppender and closing an SSH session

2008-08-01 Thread Thorbjørn Ravn Andersen
Jeff skrev den 01-08-2008 06:41: Well I'm not convinced that this is completely unrelated to log4j. This set of apps has run for 8 years in one form or another and has been scripted to survive a logout. Now, with no changes except the introduction of log4j, the behavior has changed. I agree

Re: Multiplicative Bonehosery

2008-07-31 Thread Thorbjørn Ravn Andersen
David Crisp skrev den 31-07-2008 22:23: Hi, I'm using a number of API's that each use Log4j somewhere internally. I've noticed that they all seem to step on each other's logging configs. I know for certain that I'm not the only person to be burned by this, so I'm wondering what you

Re: Using independent logs at runtime

2008-07-28 Thread Thorbjørn Ravn Andersen
JethroXT skrev den 28-07-2008 16:31: Surprisingly this resulted in the desired behaviour. I don't quite know why, because there simply aren't any loggers with that names, but I anyhow I get independent loggers, add appenders to them by every node and get single files with only node-relevant

Re: Using independent logs at runtime

2008-07-27 Thread Thorbjørn Ravn Andersen
JethroXT skrev den 27-07-2008 19:16: Hi, I have a problem that maybe someone could solve: I have a network consisting of several nodes that all have to log data independently. I don't know the exact number of nodes before runtime, so Loggers (or appenders) have to be created at runtime.

Re: file appender is not reporting exceptions

2008-07-26 Thread Thorbjørn Ravn Andersen
Meyer, Dave skrev den 26-07-2008 00:23: Any help would be greatly appreciated. My program is logging to a file and any exceptions thrown are disappearing. I am running on Linux. The only way I can see the exception is to run the application from the command line. It's like the log4j is

Re: DailyRollingAppender doing strange things with log4j-1.2.14

2008-07-24 Thread Thorbjørn Ravn Andersen
Robert Nicholson skrev den 17-07-2008 14:44: No, it's like a file descriptor wasn't closed or something because all of the 15th's log has been overwritten. ie. that 15'th log starts at midnight 16th. On Jul 16, 2008, at 3:07 PM, Thorbjørn Ravn Andersen wrote: Robert Nicholson skrev den 16

Re: ALWAYS: Error encountered on logger init:[java.lang.NullPointerException]

2008-07-24 Thread Thorbjørn Ravn Andersen
rektide skrev den 18-07-2008 18:42: I dont know how to get any useful information about this failure, and I cannot discern that I am doing anything wrong. How can I get information from log4j about its failure, and how can I debug this issue with log4j? The configuration you listed works

Re: Logger Issues on Hotdeploy

2008-07-24 Thread Thorbjørn Ravn Andersen
Fu-Tung Cheng skrev den 23-07-2008 21:12: This happens on hotdeploy only. Tomcat 6.0.16, jdk 1.6.0. The logging call is just in a normal method that looks like: The stack trace you provided does not correspond to the source of 1.2.15. Could you please produce a stack trace when using

Re: Suppress specific Exception

2008-07-21 Thread Thorbjørn Ravn Andersen
Sergio skrev den 21-07-2008 22:57: Hi, I have the annoying uncatchable ObjectNotFoundException from hibernate on my log with big stack traces. I want to completely suppress this exception from my log. I tried to find something about filters on Log4J, but I think that is not the correct way

Re: DailyRollingAppender doing strange things with log4j-1.2.14

2008-07-16 Thread Thorbjørn Ravn Andersen
Robert Nicholson skrev den 16-07-2008 21:03: I'm noticying right now the following situation -rw-r--r-- 1 311170 Jul 16 14:00 name.log -rw-r--r-- 1 455880 Jul 16 14:00 name.log.2008-07-15 What you should see is that today's log is actively overwriting yesterday's rolled log. So

Re: JDBCAppender configuration

2008-07-15 Thread Thorbjørn Ravn Andersen
Johannes Hoechstaedter skrev den 15-07-2008 16:20: Hi everybody, I am up to build a coocon webapplication, and I am using the JDBCAppender for logging. It works quite well. My only problem is, that when I switch on the loggin in debug mode, my application is as fast as a snail because of

Re: precision of log4j

2008-07-08 Thread Thorbjørn Ravn Andersen
sana qadir skrev den 08-07-2008 05:18: Despite synchronizing the time on the two machines using NTP, I am getting not only poor resolution but also negative propagation values which are ridiculous. Any idea about how I can get better resolution is this scenario Sounds like you have to do a

Re: Replace a file in DailyRollingFileAppender

2008-07-08 Thread Thorbjørn Ravn Andersen
Aggarwal, Rajat skrev den 08-07-2008 07:44: Hi All, Is there any way we can replace a file attached to a particular appender using java code? I am using DailyRollingFileAppender for my purpose and want to log to separate files depending upon certain configurations made in the database. Can

Re: Replace a file in DailyRollingFileAppender

2008-07-08 Thread Thorbjørn Ravn Andersen
Aggarwal, Rajat skrev den 08-07-2008 11:12: Hi Thorbjørn Actually, I have a created a logger instance and am adding an appender to it through my java code. So, I am not sure if I still need to make configuration entries in log4j.properties file. If you want, I can also send across the piece

Re: DailyRollingFileAppender

2008-07-08 Thread Thorbjørn Ravn Andersen
[EMAIL PROTECTED] skrev den 08-07-2008 12:02: Hi, I am using DailyRollingFile Appender for manage my log. but i want to backup just the last 5 days? is that possible to do that? The DailyRollingFileAppender does not keep track of versions back in time, so it cannot do what you want. I would

Re: additivity attribute does not work for user-defined logger but works for root logger.

2008-07-06 Thread Thorbjørn Ravn Andersen
Jacob Kjome skrev den 07-07-2008 08:11: logging name each time it is used. You'll have do add a constructor that takes a logger name, such as... public SQLStatements(String loggerName) {...} And then each time you use this helper class, pass in the logger name to use. For instance...

Re: additivity attribute for logger does not diffrently for root and user-defined logger.

2008-07-03 Thread Thorbjørn Ravn Andersen
Camer38 skrev den 03-07-2008 15:15: Instead I got an log4j warning: log4j:WARN No appenders could be found for logger (curam.tools.upgradehelper.util.SQLStatements). This sounds like your configuration file is not picked up. Try running with -Dlog4j.debug=true to see what is happening.

Re: additivity attribute does not work for user-defined logger but works for root logger.

2008-07-03 Thread Thorbjørn Ravn Andersen
Camer38 skrev den 03-07-2008 15:25: My assumption was that if I run one of the class curam.tools.upgradehelper.ieg.QuestionSequenceOrderConverter I would got all the logs from that class and all the classes used internally by curam.tools.upgradehelper.ieg.QuestionSequenceOrderConverter in the