RE: Configuring Log4J without a file - FAQ needs update

2015-02-03 Thread Blaine Bergeson (bbergeson)
erConfig. } Blaine -Original Message- From: John Lussmyer [mailto:john.lussm...@efi.com] Sent: Tuesday, February 03, 2015 11:52 AM To: Log4J Users List Subject: RE: Configuring Log4J without a file - FAQ needs update I can have a log "file" in my resources, but I can

RE: Configuring Log4J without a file - FAQ needs update

2015-02-03 Thread John Lussmyer
ge- From: Blaine Bergeson (bbergeson) [mailto:bberge...@micron.com] Sent: Tuesday, February 03, 2015 10:47 AM To: Log4J Users List Subject: RE: Configuring Log4J without a file - FAQ needs update John, This was the solution that I came up with to be able to load a configuration file that was not o

RE: Configuring Log4J without a file - FAQ needs update

2015-02-03 Thread Blaine Bergeson (bbergeson)
-user@logging.apache.org Subject: Configuring Log4J without a file - FAQ needs update I have a situation where I can't have a configuration file, so I want to configure Log4J programmatically. The FAQ on this "How do I configure log4j2 in code without a configuration file?<http://logging.ap

Configuring Log4J without a file - FAQ needs update

2015-02-03 Thread John Lussmyer
I have a situation where I can't have a configuration file, so I want to configure Log4J programmatically. The FAQ on this "How do I configure log4j2 in code without a configuration file?" is rather unclear, as it suggests using a me

Re: AW: Configuring log4j with XML

2009-09-30 Thread pagod
unt when displaying messages coming from child loggers? anyway, thanks again, now it's gonna work like a charm :-) cheers pagod -- View this message in context: http://www.nabble.com/Configuring-log4j-with-XML-tp25666820p25677104.html Sent from the Log4j - Users mailing list archive at Nabbl

AW: Configuring log4j with XML

2009-09-30 Thread Bender Heri
ARN messages. Heri -Ursprüngliche Nachricht- Von: pagod [mailto:dvergn...@yahoo.com] Gesendet: Dienstag, 29. September 2009 18:56 An: log4j-user@logging.apache.org Betreff: Configuring log4j with XML Hi everyone, I seem to have a solid understanding problem with the way log4j loads its c

Configuring log4j with XML

2009-09-29 Thread pagod
r (Test). log4j:WARN Please initialize the log4j system properly. As it looks, my configuration file hasn't had much of an effect, although it defines the same as the default config... :-| I'd be so grateful if anyone could explain this to me!! Cheers, pagod -- View this message in

configuring log4j for two JVMs

2008-03-03 Thread dvrmc
that, when i change the rootlogger level dynamically, i sometimes find logger messages from the first component(the one in the first JVM) whose level is lower than the level configured. Where am i going wrong? -- View this message in context: http://www.nabble.com/configuring-log4j-for-two-JVMs

Re: Help configuring Log4j in a stand-alone app...

2008-02-14 Thread Martyn Hiemstra
Jake has an excellent point. Here is an example of how such code would look like: log4j.rootLogger=debug, stdout log4j.logger.com.myproject=info As you can see the logger for the package com.myproject only has info behind it. If you would say log4j.logger.com.myproject=info, stdout then any l

Re: Help configuring Log4j in a stand-alone app...

2008-02-13 Thread Jacob Kjome
On Wed, 13 Feb 2008 16:51:15 +0100 Martyn Hiemstra <[EMAIL PROTECTED]> wrote: It is very simple. When you use log4j.rootLogger=debug you must ask yourself, how is log4j suppost to know which appender to use? For each logger you have to indicate which appender to use so use this instead. log4

Re: Help configuring Log4j in a stand-alone app...

2008-02-13 Thread Martyn Hiemstra
It is very simple. When you use log4j.rootLogger=debug you must ask yourself, how is log4j suppost to know which appender to use? For each logger you have to indicate which appender to use so use this instead. log4j.rootLogger=debug, stdout Then it should work. Martyn Hi folks - I'm frust

Re: Help configuring Log4j in a stand-alone app...

2008-02-13 Thread James A. N. Stauffer
I don't use a properties file to config so I'm not 100% sure but that is a common thing so a little search should turn up the answer. On Feb 13, 2008 9:43 AM, James Depaul <[EMAIL PROTECTED]> wrote: > >>If you add "-Dlog4j.debug" to the command line log4j will print out > info about how it is bein

Re: Help configuring Log4j in a stand-alone app...

2008-02-13 Thread James Depaul
>>If you add "-Dlog4j.debug" to the command line log4j will print out info about how it is being configured.<< Right... we're getting closer! Using your suggestion I was able to find the proper place for my file and now I know when it's using it - finally! so thanks >>Also, it appears that you

Re: Help configuring Log4j in a stand-alone app...

2008-02-13 Thread James A. N. Stauffer
If you add "-Dlog4j.debug" to the command line log4j will print out info about how it is being configured. Also, it appears that you haven't attached the appender to any logger. On Feb 13, 2008 9:01 AM, James Depaul <[EMAIL PROTECTED]> wrote: > > > > Hi folks - > > I'm frustrated in trying to cont

Re: Help configuring Log4j in a stand-alone app...

2008-02-13 Thread Martyn Hiemstra
Put the log4j.properties file in the root of the classpath and it should be found. Hi folks - I'm frustrated in trying to control the run-time configuration of Log4j in my standalone application. I have log4j-1.2.13.jar in my classpath. I have a log4j.properties file configured as shown below

Help configuring Log4j in a stand-alone app...

2008-02-13 Thread James Depaul
Hi folks - I'm frustrated in trying to control the run-time configuration of Log4j in my standalone application. I have log4j-1.2.13.jar in my classpath. I have a log4j.properties file configured as shown below. It seems that I have no idea where to place the property file in my classpath fo

RE: Configuring Log4J with Maven Testing and Production

2007-04-05 Thread Gallagher, Ron
I've added an entry to the wiki page you referenced. Ron Gallagher -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 10:16 PM To: Log4J Users List Subject: RE: Configuring Log4J with Maven Testing and Production This might make a good

RE: Configuring Log4J with Maven Testing and Production

2007-04-03 Thread Jacob Kjome
n >test-log4j.xml > > > > > > > >Ron Gallagher > >-Original Message- >From: Mark Hansen [mailto:[EMAIL PROTECTED] >Sent: Tuesday, April 03, 2007 1:14 PM >To: log4j-user@logging.apache.org >Subject: Configuri

RE: Configuring Log4J with Maven Testing and Production

2007-04-03 Thread Gallagher, Ron
Ron Gallagher -Original Message- From: Mark Hansen [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 1:14 PM To: log4j-user@logging.apache.org Subject: Configuring Log4J with Maven Testing and Production I use Log4J and build my applications with Maven2. I have a log4j.xm

Configuring Log4J with Maven Testing and Production

2007-04-03 Thread Mark Hansen
I use Log4J and build my applications with Maven2. I have a log4j.xml config file in the src/main/resources directory so that Maven2 builds it into the JAR with my application. However, I have a different log4j.xml that I want to use with the JUnit test that run as part of my Maven build proc

Re: Configuring log4j under wsad

2006-05-04 Thread David . Hodgman
Thanks Jake, your input is much appreciated. I'll go and smack someone for using commons-logging now! :-) National Australia Bank Limited - ACN 004 044 937 This email may contain confidential information. If you are not the intended recipient, please immediately notify us at [EMAIL PROTECTED

Re: Configuring log4j under wsad

2006-05-03 Thread Jacob Kjome
Unfortunately, if you are going to use the default PARENT_FIRST mode, you will need to put log4j and commons-logging.properties where commons-logging.jar can find them. If commons-logging.jar is a server-level library, then that's where all the jars have to go (at least with commons-logging's aut

Re: Configuring log4j under wsad

2006-05-02 Thread David . Hodgman
Whoever set up the framework of the app I'm working on did so using Commons Logging pointing at Log4j. The problem is, I can't configure Log4j properly unless I set the classloader mode as PARENT_LAST under WAS. It looks like WAS's own copy of Commons Logging is not finding our commons-logging.

Re: Configuring log4j under wsad

2006-04-25 Thread David J. M. Karlsen
[EMAIL PROTECTED] wrote: Hi all, hopefully a simple question with a simple answer... How can I get my application to use the log4j implementation when running within wsad without having to set the classloader mode as PARENT_LAST? That should only be required when utilizing Commons Logging ->

Re: Configuring log4j under wsad

2006-04-20 Thread Jacob Kjome
At 02:08 AM 4/20/2006, you wrote: > > >Hi all, > >hopefully a simple question with a simple answer... > >How can I get my application to use the log4j implementation when running >within wsad without having to set the classloader mode as PARENT_LAST? You can't if log4j.jar exists in the parent cl

Configuring log4j under wsad

2006-04-20 Thread David . Hodgman
Hi all, hopefully a simple question with a simple answer... How can I get my application to use the log4j implementation when running within wsad without having to set the classloader mode as PARENT_LAST? TIA, Dave. National Australia Bank Limited - ACN 004 044 937 This email may contain co

RE: Configuring log4j hierarchially, on-the-fly

2005-09-15 Thread DeSantis, MJ Mark @ IS (7179)
--- From: Chris Berry [mailto:[EMAIL PROTECTED] Sent: Thursday, September 15, 2005 9:21 AM To: Log4J Users List Subject: Configuring log4j hierarchially, on-the-fly I apologize if I have posed this twice. I do not see my post in teh archives, nor did I recieve a copy (although that could be a gm

Configuring log4j hierarchially, on-the-fly

2005-09-15 Thread Chris Berry
I apologize if I have posed this twice. I do not see my post in teh archives, nor did I recieve a copy (although that could be a gmail thing) Greetings, I'm pretty certain that I know that answer to my question before I ask (It's not possible ;-) -- but I'll ask anyway, just in case I'm missing so

RE: new user question re: configuring log4j via code

2005-06-29 Thread Dave Gomboc
On Wed, 29 Jun 2005, Bender Heri wrote: > If you dont you pay special attention (i.e. using own > RepositorySelector, using MDC, etc.), then all the log4j stuff is really > global in one and them same JVM. I think that would probably be okay. No? > You need a way how you can distinguish your di

RE: new user question re: configuring log4j via code

2005-06-29 Thread Bender Heri
nesday, June 29, 2005 4:22 PM > To: 'Log4J Users List' > Cc: Bender Heri > Subject: RE: new user question re: configuring log4j via code > > > I call the LoggingConfiguration "class"/glorified-global near the > start of the main() routine. > >

RE: new user question re: configuring log4j via code

2005-06-29 Thread Dave Gomboc
4J Users List > Subject: RE: new user question re: configuring log4j via code > > Where and how do you call your LoggingConfiguration class exactly? > > The code "private static Logger log = > Logger.getLogger(Foo.Bar.class);" is called at class loading, > before any &q

RE: new user question re: configuring log4j via code

2005-06-29 Thread Bender Heri
ning in its own thread context? If you want more help you have to clarify this. Heri > -Original Message- > From: Dave Gomboc [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 28, 2005 7:46 PM > To: log4j-user@logging.apache.org > Subject: new user question re: configuring

Re: new user question re: configuring log4j via code

2005-06-28 Thread Dave Gomboc
On Tue, 28 Jun 2005, Dave Gomboc wrote: [small correction] > public boolean someRoutine() { > > log.trace("Entered."); > > [boolean result = ;] > log.trace("Exiting: result = |{}|.", result); return result; > }; > > };

new user question re: configuring log4j via code

2005-06-28 Thread Dave Gomboc
I have code to launch several independent processes, which then set up socket connections with each other. I'd like to use log4j to acquire execution trace information to assist me in finding bugs in that code. I have a LoggingConfiguration() that I call at the start of each independent process

RE: Configuring Log4J

2004-08-18 Thread Shapira, Yoav
ECTED] [mailto:[EMAIL PROTECTED] >Sent: Tuesday, August 17, 2004 4:36 PM >To: Log4J Users List >Subject: Re: Configuring Log4J > >Speaking of which, how come there are no documentation on the >configuration parameters... Or is it me who can't find it? > >Thanks, >-ra

Re: Configuring Log4J

2004-08-17 Thread Tom . Goetze
s, > -ramin > > "Harshawardhan Gadgil" <[EMAIL PROTECTED]> > 08/17/2004 04:34 PM > Please respond to "Log4J Users List" > > > To: "Log4J Users List" <[EMAIL PROTECTED]> > cc: > Subject:Re: Co

Re: Configuring Log4J

2004-08-17 Thread Harshawardhan Gadgil
"Harshawardhan Gadgil" <[EMAIL PROTECTED]> > 08/17/2004 04:34 PM > Please respond to "Log4J Users List" > > > To: "Log4J Users List" <[EMAIL PROTECTED]> > cc: > Subject:Re: Configuring Log4J >

Re: Configuring Log4J

2004-08-17 Thread ramin_rad
"Log4J Users List" <[EMAIL PROTECTED]> cc: Subject:Re: Configuring Log4J PHEW... Got it log4j.category.org.apache.axis=OFF did the trick... On Tue, 2004-08-17 at 11:00, Harshawardhan Gadgil wrote: > Hi, > I'm a new user to Log4J and I've a

Re: Configuring Log4J

2004-08-17 Thread Harshawardhan Gadgil
PHEW... Got it log4j.category.org.apache.axis=OFF did the trick... On Tue, 2004-08-17 at 11:00, Harshawardhan Gadgil wrote: > Hi, > I'm a new user to Log4J and I've a configuration question. > > I'm using Log4J in my programs to o/p all sorts of stuff from DEBUG to > FATAL.. Also I make use o

Configuring Log4J

2004-08-17 Thread Harshawardhan Gadgil
Hi, I'm a new user to Log4J and I've a configuration question. I'm using Log4J in my programs to o/p all sorts of stuff from DEBUG to FATAL.. Also I make use of Apache AXIS in some places.. using log4j.debug=true OR log4j.rootLogger=DEBUG, MYSTUFF causes the Axis's DEBUG level stuff to be prin

RE: configuring log4j with BEA Weblogic 8.1

2004-01-23 Thread Shapira, Yoav
Howdy, >I have the root level set to ON in the log4j.xml, below is the log4j.xml >file, anything obvious a miss?. I did have the appenders set to >ConsoleAppender and removed the reference to param name="File", but the >logs were still not generated. ON is not a log4j level. OFF and ALL are, al

RE: configuring log4j with BEA Weblogic 8.1

2004-01-23 Thread Joe Collins
hanks Joe -Original Message- From: Alison Ortega [mailto:[EMAIL PROTECTED] Sent: 22 January 2004 17:47 To: [EMAIL PROTECTED] Subject: Re: configuring log4j with BEA Weblogic 8.1 Could you post the entire log4j.xml file? D

Re: configuring log4j with BEA Weblogic 8.1

2004-01-22 Thread Alison Ortega
Could you post the entire log4j.xml file? Did you try turning messages on so you can see log4j initializing on the console? Alison Ortega North Carolina State University ACS Systems Programmer II 919-513-1417 >>> [EMAIL PROTECTED] 1/22/2004 12:28:08 PM >>> I have my log4j.xml file in the WEB-IN

configuring log4j with BEA Weblogic 8.1

2004-01-22 Thread Joe Collins
I have my log4j.xml file in the WEB-INF\classes directory of my server I point to log4j-1.2.6.jar on the classpath of my server on start up I specify Set JAVA_OPTIONS=-Dlog4j.config=C:\bea\user_projects\domains\\WEB-INF\cl asses\log4j.xml on start up of my server. In my log4j.xml I specify th

RE: Configuring Log4j for testing vs. development vs. deployment

2003-12-29 Thread haggaic2v7-loguser
> Another great option is the variable interpolation available > in > > > > > log4j, which > > > > > allows you to do something like: > > > > > > > > > > log4j.appender.daily.File=${log.dir}/coldev.log > > > > > >

RE: Configuring Log4j for testing vs. development vs. deployment

2003-12-29 Thread Jacob Kjome
appender.daily.File=${log.dir}/coldev.log > > > > > > > > where the variable "log.dir" (or whatever you want to name it) is > > a > > > > java > > > > system property. > > > > > > > > > &g

RE: Configuring Log4j for testing vs. development vs. deployment

2003-12-29 Thread haggaic2v7-loguser
appender.daily.File=${log.dir}/coldev.log > > > > > > where the variable "log.dir" (or whatever you want to name it) is > a > > > java > > > system property. > > > > > > > > > > > > -Original Message- > > > From: Wendy Smoa

RE: Configuring Log4j for testing vs. development vs. deployment

2003-12-24 Thread Jacob Kjome
rty. > > > > -Original Message- > From: Wendy Smoak [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 23, 2003 1:02 PM > To: [EMAIL PROTECTED] > Subject: Configuring Log4j for testing vs. development vs. deployment > > > > I figu

RE: Configuring Log4j for testing vs. development vs. deployment

2003-12-24 Thread haggaic2v7-loguser
ame it) is a > java > system property. > > > > -Original Message- > From: Wendy Smoak [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 23, 2003 1:02 PM > To: [EMAIL PROTECTED] > Subject: Configuring Log4j for testing vs. development vs. deployment > > > > I figu

RE: Configuring Log4j for testing vs. development vs. deployment

2003-12-23 Thread Steve Ebersole
endy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 23, 2003 1:02 PM To: [EMAIL PROTECTED] Subject: Configuring Log4j for testing vs. development vs. deployment I figured out that this problem: [junit] log4j:ERROR setFile(null,true) call failed. [junit] java.io.FileNotFoundException:

RE: Configuring Log4j for testing vs. development vs. deployment

2003-12-23 Thread Shapira, Yoav
actual value, e.g. the log file path. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Wendy Smoak [mailto:[EMAIL PROTECTED] >Sent: Tuesday, December 23, 2003 2:02 PM >To: [EMAIL PROTECTED] >Subject: Configuring Log4j for testing vs. development vs. de

Configuring Log4j for testing vs. development vs. deployment

2003-12-23 Thread Wendy Smoak
or me when I run junit tests from the mapped network drive "G" where the source code lives. So... Do you have a separate log4j.properties for running tests? How do you handle configuring log4j for tests? (In the most automated way possible!) Thank you, -- Wendy Smoak Application Syst