On 11 April 2012 23:19, Jacob Kjome wrote:
>
> Selenium depends upon SLF4J. You may recall that I mentioned SLF4J in a
> previous email. In appears Selenium includes it's own SLF4J binding. It
> seems rather silly to me that they would include this as part of their main
> library rather than a
On 11 April 2012 18:45, tomm wrote:
> I used the old project I had in my Projects list. And it works there
> flawlessly.
>
> For easier readability here are the results:
>
> Log4j configuration debug output in working project:
> **Start of LogManag
I used the old project I had in my Projects list. And it works there
flawlessly.
For easier readability here are the results:
Log4j configuration debug output in working project:
**Start of LogManager static initializer
*** configurationOptionStr=null
** End of LogManager static initializer
DEBUG
2012/4/11 Douglas E Wegscheid
>
>
> I made a new project in Eclipse, added all the jar files in
> httpcomponents-client-4.1.3 GA to a /lib folder, added log4j-1.2.16.jar to
> the same folder, put all the jars in that folder on my classpath, added
> these two files to src folder:
>
>
There was a di
I used
System.setProperty("log4j.defaultInitOverride", "true");
So I can get clean loading:
log4j: Default initialization of overridden by
log4j.defaultInitOverrideproperty.
log4j: Parsing for [root] with value=[DEBUG, stdout].
log4j: Level token is [DEBUG].
log4j: Category root set to DEBUG
log4j
>
> the log4j properties that you originally posted has nothing in it about
> jobManager; the output indicates that the one getting used does have
> settings for jobManager. Jacob has asked a question that may or may not be
> salient: are you sure the config file that is being loaded is the one you
On 10 April 2012 22:30, Jacob Kjome wrote:
>
> In your other email you say...
>
>
> Running command line. From within NetBeans. No fancy stuff.
>>
>
> Never discount the complexity of an IDE and how it forks JVMs and/or
> performs idiosyncratic classloading.
>
>
I load/run only 1 JVM at a time.
My debug for log4j:
log4j: Trying to find [log4j.xml] using context classloader
sun.misc.Launcher$AppClassLoader@56e88e24.
log4j: Trying to find [log4j.xml] using
sun.misc.Launcher$AppClassLoader@56e88e24 class loader.
log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource().
log4j:
On 10 April 2012 19:25, Jacob Kjome wrote:
> On Tue, 10 Apr 2012 18:43:21 +0200
> Are the jars binary identical? That is, are they exactly the same size
> with exactly the same contents?
One is 60.7 KB and one is 60.8 KB
> What size are they? 52k would indicate it is the API jar (bad) by an
>
>
> System.setProperty("log4j.**logger.org.apache.http.client"**, "DEBUG");
>
> But HttpClient's instructions say to do (again, read the instructions more
> closely)...
> System.setProperty("org.**apache.commons.logging.**
> simplelog.log.org.apache.http.**wire", "DEBUG");
>
>
For the reco
There is no commons-logging-api.jar in my classpath anywhere. There is
commons-logging-1.1.1.jar (there are 2 of them actually).
There is only one log4j in my classpath and it is log4j-1.2.16.jar
I highly doubt a problem to be a classpath problem, because then the
logger.debug("some
test message")
On 10 April 2012 15:34, Jacob Kjome wrote:
>
> That system property stuff only applies to commons-logging, not Log4j.
> Look more closely at the instructions [1].
>
> BTW, are you using commons-logging-api.jar? If so, that's the problem.
> You need commons-logging.jar. See the commons-logging r
I did this for a test:
logger.debug("some test message"); // <- DOES get printed.
my_code_here_based_on_HttpClient; // <- should produce tons of logging
output
logger.debug("some test message"); // <- DOES get printed.
So why the middle part doesn't produce any output? Just to recall I am using
lo
In reply to the questions:
By Michael Erskine
1. I know this might sound daft but is your class actually trying to log
anything?
2. Any luck with Log4J for a simple application?
3. Are you using HttpClient at the server side under Tomcat or as a
standalone client?
1. Yes it does. I use:
PropertyC
From: http://hc.apache.org/httpcomponents-client-ga/logging.html
I copy pasted
log4j.rootLogger=INFO, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%5p [%c] %m%n
log4j.logge
15 matches
Mail list logo