Re: How to tell which logger to disable

2013-10-30 Thread Douglas E Wegscheid
change the pattern layout strings for the output appender to log the full class name: I suspect the appender has a format like %c{1}; if you change that to just %c you should get the entire class ■ DOUGLAS E. WEGSCHEID // Lead Analyst, Directories (269) 923-5278 // douglas_e_wegsch

Re: log4j.xml problem

2012-09-26 Thread Douglas E Wegscheid
from log4j (or from the log4j instance that you are fiddling with)? A good way to check is to message with the layout and see if the log messages change when you change the layout ■ DOUGLAS E. WEGSCHEID // LEAD ENGINEER (269) 923-5278 // douglas_e_wegsch...@whirlpool.com "A wrong note pla

Re: log4j.xml problem

2012-09-26 Thread Douglas E Wegscheid
at least one problem higher in the file (lines 27 and 31): too many XML comment closes (-->) --> --> good XML editor is recommended ■ DOUGLAS E. WEGSCHEID // LEAD ENGINEER (269) 923-5278 // douglas_e_wegsch...@whirlpool.com "A wrong note played hesitatingly is a

Re: log4j.xml problem

2012-09-26 Thread Douglas E Wegscheid
be willing to look at it, but it looks like you attached your web.xml instead of the log4j.xml ■ DOUGLAS E. WEGSCHEID // LEAD ENGINEER (269) 923-5278 // douglas_e_wegsch...@whirlpool.com "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpret

Re: Log4j : how to classify loger messages

2012-08-23 Thread Douglas E Wegscheid
> In my Program i used DOMConfigurator.configure("D:/log4j.xml"); > now it throws new Error. > > log4j:WARN No appenders could be found for logger (com.log.ClassLogger). > log4j:WARN Please initialize the log4j system properly. > log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig

RE: Initializing log4j in a library

2012-07-18 Thread Douglas E Wegscheid
if you try this, you will find that it will work just fine, provided you have a log4j.properties or log4j.xml around ■ DOUGLAS E. WEGSCHEID // LEAD ENGINEER (269) 923-5278 // douglas_e_wegsch...@whirlpool.com "A wrong note played hesitatingly is a wrong note. A wrong note played

Re: Filter log based on package when using getLogger(String)

2012-07-18 Thread Douglas E Wegscheid
Use MDC for the string? ■ DOUGLAS E. WEGSCHEID // LEAD ENGINEER (269) 923-5278 // douglas_e_wegsch...@whirlpool.com "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation." Charles Hache 07/18/2012 01:26 PM Please respond to &q

Re: Threshold Levels

2012-07-13 Thread Douglas E Wegscheid
try running with -Dlog4j.debug, it'll tell you what information log4j is really getting out of the config... should log4j.appender.syslogAudit.Threshold=INFO have a lowercase 'T' in it? ■ DOUGLAS E. WEGSCHEID // LEAD ENGINEER (269) 923-5278 // douglas_e_wegsch...@whirlpool.co

Re: class specific logging level

2012-06-08 Thread Douglas E Wegscheid
root being set to ERROR will not block the Myclass DEBUG; the more-specific Myclass logger setting overrides the root setting. Have you actually tried this? package com.pkg; import org.apache.log4j.Logger; import com.other.OtherClass; public class MyClass { static Logger logger = Logger.getL

Re: class specific logging level

2012-06-08 Thread Douglas E Wegscheid
> I want MyClass logs of DEBUG level and all other classes of ERROR in > "log1.log" file as mentioned in logger "Log1". > ... > whereas if I set the level in appender > "Log1" to DEBUG, I do get the DEBUG logs of Myclass in log1.log. If you set the level of the Log1 appender to DEBUG, you say tha

Re: Log4J doesn't work at all

2012-04-11 Thread Douglas E Wegscheid
slf4j list if you continue to have problems... ■ DOUGLAS E. WEGSCHEID // LEAD ENGINEER (269) 923-5278 // douglas_e_wegsch...@whirlpool.com "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation." tomm wrote on 04/11/2012 01:55:20 P

Re: Log4J doesn't work at all

2012-04-11 Thread Douglas E Wegscheid
tomm wrote on 04/11/2012 11:55:59 AM: > I got something pretty much the same. try making a new project with >>exactly<< what I posted. Then we'll know if it's your environment, or that specific project

Re: Log4J doesn't work at all

2012-04-11 Thread Douglas E Wegscheid
tomm wrote on 04/11/2012 11:55:59 AM: > I also > added: org.apache.commons.logging.Log=org.apache.commons.logging. > impl.Log4JLogger > to commons-logging.properties to point commons-logging to log4j. Didn't > help either. > > More ideas? Have you tried creating a new project with just thes

Re: Log4J doesn't work at all

2012-04-11 Thread Douglas E Wegscheid
TTP/1.1 200 OK [Date: Wed, 11 Apr 2012 12:28:02 GMT, Server: Apache/2.2.15 (Red Hat), Last-Modified: Mon, 16 May 2011 14:39:57 GMT, ETag: "1660006-129-4a365a1278f31", Accept-Ranges: bytes, Content-Length: 297, Keep-Alive: timeout=15, max=100, Connection: Keep-Alive, Content-Type: t

Re: Log4J doesn't work at all

2012-04-10 Thread Douglas E Wegscheid
tomm wrote on 04/10/2012 05:06:20 PM: > > The one odd thing I see is that there is a logger named "jobManager" that > > is configured. I don't see that in the log4 config you posted in a > > previous response (see below). Are you sure the config file that is being > > loaded is the one yo

Re: Using Log4J with an existing java.util.logging appender

2012-02-28 Thread Douglas E Wegscheid
I'm not sure this will work, but may be worth exploring: use the slf4j log4j adapter (so calls to log4j logging calls go to slf4j), and configure slf4j to log to j.u.l. ■ DOUGLAS E. WEGSCHEID // LEAD ENGINEER (269) 923-5278 // douglas_e_wegsch...@whirlpool.com "A wrong note played he

RE: redirecting Stdout and stderr to a different log file

2012-01-17 Thread Douglas E Wegscheid
you may want to consider piping stderr and stdout to the apache rotatelogs program. ■ DOUGLAS E. WEGSCHEID // LEAD ENGINEER (269) 923-5278 // douglas_e_wegsch...@whirlpool.com "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation."

RE: redirecting Stdout and stderr to a different log file

2012-01-17 Thread Douglas E Wegscheid
is log4j necessary? will java -jar foo.jar > sysout.txt 2> syserr.txt suffice? ■ DOUGLAS E. WEGSCHEID // LEAD ENGINEER (269) 923-5278 // douglas_e_wegsch...@whirlpool.com "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation

RE: Log4j and Java7/JDBC4.1's CommonDataSource.getParentLogger()

2012-01-12 Thread Douglas E Wegscheid
etails, if needed. ■ DOUGLAS E. WEGSCHEID // LEAD ENGINEER (269) 923-5278 // douglas_e_wegsch...@whirlpool.com "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation." BRUNO MELLONI wrote on 01/12/2012 11:19:57 AM: > I am not following

Re: Log4j and Java7/JDBC4.1's CommonDataSource.getParentLogger()

2012-01-12 Thread Douglas E Wegscheid
I have hit the same situation with software that requires use of Apahce commons logging, I use slf4j (and have it feed log4j); it has adapters to let you log from j.u.l and commons logging. I don't know if it's best practice, but it certainly works. ■ DOUGLAS E. WEGSCHEID // LEAD ENG

Re: Separating some classes' messages from

2011-02-24 Thread Douglas E Wegscheid
ah. a good point. you probably just want the 2nd one: -Dlog4j.configuration=file:/url/path/to/log4j.xml you can just try it also (along with the -Dlog4j.debug=true suggested previously) ■ DOUGLAS E. WEGSCHEID // LEAD ENGINEER (269) 923-5278 // douglas_e_wegsch...@whirlpool.com "A wrong

Re: xml config

2011-02-24 Thread Douglas E Wegscheid
and Jacob's other posting is also helpful: I quote: -Dlog4j.defaultInitOverride=true -Dlog4j.configuration=file:/url/path/to/log4j.xml See more at... http://logging.apache.org/log4j/1.2/manual.html#defaultInit ■ DOUGLAS E. WEGSCHEID // LEAD ENGINEER (269) 923-5278 // douglas_e_w

Re: Logging to File

2010-11-22 Thread Douglas E Wegscheid
uncomment the "log4j.appender" lines. ■ DOUGLAS E. WEGSCHEID // LEAD ENGINEER (269) 923-5278 // douglas_e_wegsch...@whirlpool.com "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation." Clement Jebakumar 11/20/2010 09:21

Re: log4j and common logging

2010-11-17 Thread Douglas E Wegscheid
um... aren't you only logging messages of severity on up for most loggers? log4j.rootCategory=ERROR,... how are you creating and using your logger? ■ DOUGLAS E. WEGSCHEID // LEAD ENGINEER (269) 923-5278 // douglas_e_wegsch...@whirlpool.com "A wrong note played hesitatingly is a wro

Re: Extending Logger

2010-10-29 Thread Douglas E Wegscheid
I guess I don't understand the question: what are you wanting to do? programmatically set properties on a custom logger, or do it in xml? "custom" logger is a funny term: the configuration code handles distributed and customer-written loggers identically... Douglas E Wegscheid

Re: Extending Logger

2010-10-29 Thread Douglas E Wegscheid
can't you just cast the Logger to CustomLogger? if (logger instanceof CustomLogger) { CustomLogger c = (CustomLogger) logger; c.customLoggersMethod(); } Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong not

RE: Multiple Configuration Files

2010-09-08 Thread Douglas E Wegscheid
I suspect the lack of answer means that no one knows a way to do this, except programmatically... Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpret

Re: Dynamic logger configuration

2010-09-08 Thread Douglas E Wegscheid
nfiguring-log4j-and.html Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation." Chris 09/07/2010 04:42 PM Please respond to "Log4

Re: SMTPAppender: empty Subject and To

2010-06-03 Thread Douglas E Wegscheid
Can you set log4j.debug=true in your properties? you will get a lof of output to System.out, which will tell you how log4j is configuring itself. btw, your config looks good. any chance that your mail system is doing something to the message? Douglas E Wegscheid Lead Technical Analyst

Re: Logging some packages to File

2010-05-27 Thread Douglas E Wegscheid
log4j.configuration takes a URL, not a file path? Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation." fmarchioni 05/27/2010 09:10 AM Please

Re: Logging some packages to File

2010-05-26 Thread Douglas E Wegscheid
even if this configuration gets picked up, it won't create the file. No appenders are referenced anywhere. Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is inte

Re: Logging some packages to File

2010-05-26 Thread Douglas E Wegscheid
d "A2". log4j: Appender "A2" was already parsed. log4j: Handling log4j.additivity.hibernate.objects=[null] log4j: Finished configuring. and you can see that the A2 appender is instantiated and set up. Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278

Re: Doubt about log4j configuration and OCI

2010-05-18 Thread Douglas E Wegscheid
ahha. someone *has* done a JDBCAppender that will use an existing datasource. Take a look at http://www.boky.cc/2010/02/03/jdbcappender-for-log4j/ Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation "A wrong note played hesitatingly is a wrong note. A wrong note played

Re: Doubt about log4j configuration and OCI

2010-05-18 Thread Douglas E Wegscheid
JDBCAppender will let you leave off the "driver" parameter). Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation." "Exposito Aguilera, Francisco"

Re: FW: Parsing Log4j log file

2010-04-27 Thread Douglas E Wegscheid
one approach, use the XmlLayout, and then you can use your favorite XML parsing API to parse the file. Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpret

Re: Display log in a web page?

2010-04-20 Thread Douglas E Wegscheid
________ Från: Douglas E Wegscheid [douglas_e_wegsch...@whirlpool.com] Skickat: den 19 april 2010 19:06 Till: Log4J Users List Kopia: log4j-user@logging.apache.org Ämne: Re: Display log in a web page? we haven't implemented it yet, but will be in the next month or so: use JdbcAppender,

Re: Display log in a web page?

2010-04-19 Thread Douglas E Wegscheid
we haven't implemented it yet, but will be in the next month or so: use JdbcAppender, and write a web app to report against the database. Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong note pl

Re: Problems with inheritance of com.foo... loggers

2010-02-04 Thread Douglas E Wegscheid
"de.wota.segmentation.Bar" will inherit from "de.wota.segmentation", "de.wota", and "de" but not "de.wota.MyApp". Change your configuration to set up logging for "de.wota" instead of "de.wota.MyApp". Douglas E Wegscheid

Re: Log4j Performance with Netbeans Platform

2009-09-09 Thread Douglas E Wegscheid
a reasonable guess is that console i/o on Netbeans 6.7 is slow. if thei is a problem in log4j, it would appear to be in the consoleappender, fileappender seems to be ok. perhaps querying someone that knows lot's about Netbeans would be a good idea? Douglas E Wegscheid Lead Technical An

Re: Log4j Performance with Netbeans Platform

2009-09-09 Thread Douglas E Wegscheid
what is the relative performance of System.out.println on the two platforms? what is the relative performance of log4j when using a FileAppender? Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong

Re: log4j:WARN No appenders could be found for logger (org.apache.fop.render.RendererFactory)

2009-09-09 Thread Douglas E Wegscheid
are doing, it's hard to help from here. what have you tried? what research have you done? googling for "apache fop log4j" produces 79800 hits, the first page looks like it has many relevant hits. Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5

Re: Windows server 2 008 64 bit

2009-09-01 Thread Douglas E Wegscheid
s the only piece that I am aware of that would be platform/version specific. It would be simple for you to test :) Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpre

Re: Reliable logging via log4j and NFS

2009-07-15 Thread Douglas E Wegscheid
some additional possibilities: - use jdbc logging to a central server/database. - use a socket appender to send the data to the central server. - use the JMSappender to send the data to the central server Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 &q

Re: SyslogAppender on linux and aix

2009-06-26 Thread Douglas E Wegscheid
esses (other syslog daemons may also have this capability); configuring it to accept only from 127.0.0.1 would be almost as secure as just accepting messages from /dev/log. Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly

Re: SyslogAppender on linux and aix

2009-06-26 Thread Douglas E Wegscheid
"it does not work": no output? error message? exception? machine catches on fire? make sure that your syslog is set up to receive from the network (default port udp port 514) , and not just /dev/log. 'hostname' is indeed the name of the machine running the syslog daemon?

Re: Extract log info from each output log line on the console

2009-06-01 Thread Douglas E Wegscheid
if you have a chance to change the log file layout, use the XMLLayout. It's unambiguous to parse. parsing the other layouts can be a problem (think about the situation of messages spanning multiple lines, or that have an exception trackback...) Douglas E Wegscheid Lead Technical An

RE: Dynamic File Name and Turn off File Logging

2009-05-20 Thread Douglas E Wegscheid
system properties are set on the Java command line with the -D switch, not with environment variables. java -DLOG4J_NULL=nul . power97 wrote on 05/20/2009 03:10:48 PM: > > It didn't work. Any ideas , here is my code: > > Windows .cmd file: > set LOG4J_NULL=nul > > log4j.properties file

RE: Dynamic File Name and Turn off File Logging

2009-05-20 Thread Douglas E Wegscheid
unix I still have to manually set the values so setting it in the log4j.properties maybe isn't anymore work. Douglas E Wegscheid wrote: > > how are you setting it now? inside your program, or in the configuration? > > you have a number of options: programmatically you can det

RE: Dynamic File Name and Turn off File Logging

2009-05-20 Thread Douglas E Wegscheid
program from ( set -DLOG4J_NULL=/dev/null and the ${LOG4J_NULL} in your config. options limited by imagination... Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpret

RE: Dynamic File Name and Turn off File Logging

2009-05-20 Thread Douglas E Wegscheid
on Unix-like systems, /dev/null works great. Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation." Michael Erskine 05/20/2009 10:06 AM Please

Re: Default Initialization Servlet: Determine Hostname?

2009-05-11 Thread Douglas E Wegscheid
this should be pretty straightforward: you can determine hostname with InetAddress.getLocalHost(). after that, it's just code. you probably won't get an address of "localhost" back, though. localhost usually (always?) maps to 127.0.0.1... Douglas E Wegscheid Lead Technica

Re: tomcat catalina logs

2009-05-11 Thread Douglas E Wegscheid
html what have you tried? do you have specific questions? Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation."

Re: AW: Newbie questions

2009-04-10 Thread Douglas E Wegscheid
that posting a question is a waste of time is not a good way to come across as helpful. Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation." John El

Re: AW: Newbie questions

2009-04-09 Thread Douglas E Wegscheid
> One more dumb question for you. If you're so smart, where did I find the > set up for the fatal log? And why? I would have had to agree with Bender's statement that logging with no appenders makes the logging go nowhere, and I put together a test case to make sure: the program: import or

Re: import log into java model using log4j.properties

2009-03-25 Thread Douglas E Wegscheid
you could, but you still have the problem of handling multi-line messages. if you have the option to change layout, xmllayout is pretty foolproof... Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong

Re: import log into java model using log4j.properties

2009-03-25 Thread Douglas E Wegscheid
doing this with an arbitrary layout would be quite daunting. if you use XMLLayout, then reading the XML and doing what you want would be quite simple. Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A

Re: Error on log4j

2009-02-20 Thread Douglas E Wegscheid
could the path for log4j.configuration be wrong, and it can't find your config. add -Dlog4j.debug=true, and it will tell you how it's loading it's config. btw, you can only have one configuration. are you trying to use both log4j.xsl.properties and log4j.pdf.properties? Doug

Re: A default getLogger method

2009-01-28 Thread Douglas E Wegscheid
it's not what I expect. If I see an error message that is marked as being logged by class T1, I would expect to find the corresponding logging statement in class T1 or a superclass, not a subclass but that's just a style thing... Douglas E Wegscheid Lead Technical Analyst,

Re: A default getLogger method

2009-01-28 Thread Douglas E Wegscheid
een the Thread.currentThread().getStackTrace() show up in Java5 (I've been using the StackTraceElement[] stack = new Throwable().getStackTrace(); hack), and appreciate him sharing his idea.\ Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note pla

Re: A default getLogger method

2009-01-27 Thread Douglas E Wegscheid
the subclass, you screw up the superclass' logger (static class variables are shared with subclasses, yes?). static loggers in a subclass/superclass situation are messy, I haven't been able to figure out a good way to do static loggers in that siutation. Any ideas? Douglas E Wegscheid

Re: Unable to get Syslog appender to work without the -r option

2008-09-19 Thread Douglas E Wegscheid
http://marc.info/?l=log4net-dev&m=109344646600810&w=2 Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation." "Kannan Ekanath" <[E

Re: Problem in using SMTPAppender with gmail

2008-09-19 Thread Douglas E Wegscheid
the same problem, but no solution. It does reference using a log4j.appender.mail.smtp.starttls.enable property. but that should get you started in your research! Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wron

Re: each thread needs a log4j file

2008-08-22 Thread Douglas E Wegscheid
*why* do you need a separate file for each managed object? Douglas E Wegscheid Lead Technical Analyst, Whirlpool Corporation (269)-923-5278 "A wrong note played hesitatingly is a wrong note. A wrong note played with conviction is interpretation." "Reza Razavipour" <