You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Koni <ko...@bluewin.ch> on 2003/08/08 10:11:58 UTC

How to configure commons-logging on JDK1.4

Hello
I'm using Struts 1.1 with commons-logging. My 'commons-logging.properties'
file is in the CLASSPATH and has the following 2 entries:

----
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
org.apache.commons.logging.simplelog.log.LogonAction=info
----

When I run my application the Log should use the 'SimpleLog', as defined
in 'commons-logging.properties'. BUT it uses the default logger for my environment
org.apache.commons.logging.impl.Jdk14Logger!!!!

How can I configure logging to use 'SimpleLog'?? Any examples??

Thanks
Koni


Re: How to configure commons-logging on JDK1.4

Posted by Koni Roth <ko...@bluewin.ch>.
Thanks Craig
Since I have my commons-logging.properties file in WEB-INF/classes and 
*not* in a subdirectory everything works fine! I didn't get this out of 
the documentation.
Cheers
Koni

Craig R. McClanahan wrote:

> On Fri, 8 Aug 2003, Koni Roth wrote:
> 
> 
>>Date: Fri, 08 Aug 2003 18:47:41 +0200
>>From: Koni Roth <ko...@bluewin.ch>
>>Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
>>To: Struts Users Mailing List <st...@jakarta.apache.org>,
>>     commons-user@jakarta.apache.org
>>Subject: Re: How to configure commons-logging on JDK1.4
>>
>>No answer until now! It looks like nobody is using commons-logging!
>>Very frustrating to be the only one using it...
>>
>>Is there really no useful example or documentation?
>>
> 
> 
> The documentation you're seeking is in the "package description" portion
> of the Javadocs.  This is true for all of the Commons packages.
> 
> http://jakarta.apache.org/commons/logging/api/
> 
> 
>>Cheers and enjoy the Friday Beer.
>>Koni
>>
> 
> 
> Craig
> 
> 
> 
>>-------- Original Message --------
>>Subject: How to configure commons-logging on JDK1.4
>>Date: Fri, 8 Aug 2003 10:11:58 +0200
>>From: Koni <ko...@bluewin.ch>
>>Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
>>To: commons-user@jakarta.apache.org, struts-user@jakarta.apache.org
>>
>>Hello
>>I'm using Struts 1.1 with commons-logging. My 'commons-logging.properties'
>>file is in the CLASSPATH and has the following 2 entries:
>>
>>----
>>org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
>>org.apache.commons.logging.simplelog.log.LogonAction=info
>>----
>>
>>When I run my application the Log should use the 'SimpleLog', as defined
>>in 'commons-logging.properties'. BUT it uses the default logger for my
>>environment
>>org.apache.commons.logging.impl.Jdk14Logger!!!!
>>
>>How can I configure logging to use 'SimpleLog'?? Any examples??
>>
>>Thanks
>>Koni
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: How to configure commons-logging on JDK1.4

Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Fri, 8 Aug 2003, Koni Roth wrote:

> Date: Fri, 08 Aug 2003 18:47:41 +0200
> From: Koni Roth <ko...@bluewin.ch>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> To: Struts Users Mailing List <st...@jakarta.apache.org>,
>      commons-user@jakarta.apache.org
> Subject: Re: How to configure commons-logging on JDK1.4
>
> No answer until now! It looks like nobody is using commons-logging!
> Very frustrating to be the only one using it...
>
> Is there really no useful example or documentation?
>

The documentation you're seeking is in the "package description" portion
of the Javadocs.  This is true for all of the Commons packages.

http://jakarta.apache.org/commons/logging/api/

> Cheers and enjoy the Friday Beer.
> Koni
>

Craig


>
> -------- Original Message --------
> Subject: How to configure commons-logging on JDK1.4
> Date: Fri, 8 Aug 2003 10:11:58 +0200
> From: Koni <ko...@bluewin.ch>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> To: commons-user@jakarta.apache.org, struts-user@jakarta.apache.org
>
> Hello
> I'm using Struts 1.1 with commons-logging. My 'commons-logging.properties'
> file is in the CLASSPATH and has the following 2 entries:
>
> ----
> org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
> org.apache.commons.logging.simplelog.log.LogonAction=info
> ----
>
> When I run my application the Log should use the 'SimpleLog', as defined
> in 'commons-logging.properties'. BUT it uses the default logger for my
> environment
> org.apache.commons.logging.impl.Jdk14Logger!!!!
>
> How can I configure logging to use 'SimpleLog'?? Any examples??
>
> Thanks
> Koni
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>

Re: How to configure commons-logging on JDK1.4

Posted by Koni Roth <ko...@bluewin.ch>.
Kris you are great!!!
When the commons-logging.properties file is in WEB-INF/classes and *not* 
in a subdirectory it works!
Looks strange to me because I thought all the subdirectories are part of 
the CLASSPATH.

Anyway, the beer in front of me is dedicated to Kris ;-)

Thanks
Koni


Kris Schneider wrote:

> If you're happy with Jdk14Logger instead of SimpleLog, that's fine. But I just
> verified that you *can* get SimpleLog to work with JDK1.4. As I said, make sure
> commons-logging.properties is in WEB-INF/classes, *not* a subdirectory. 
> 
> Quoting Koni Roth <ko...@bluewin.ch>:
> 
> 
>>Thanks Kris
>>I read an article at http://www.onjava.com/lpt/a/4017 (section Logging, 
>>point 5). There he says explicit:
>>
>>-----
>>5. Finally, if none of the above is valid and the application is not 
>>running on JRE 1.4 and above, the application uses a built-in SimpleLog, 
>>which writes everything to System.err.
>>-----
>>
>>Because my application runs on JRE 1.4, it uses automatic the 
>>Jdk14Logger. I cannot use SimpleLog on JDK 1.4! Therefore I will use 
>>Jdk14Logger and not Log4J.
>>
>>Thank you, Koni
>>
>>Kris Schneider wrote:
>>
>>
>>>Try actually putting it in WEB-INF/classes, not WEB-INF/classes/myclass.
>>>
>>>Quoting Koni Roth <ko...@bluewin.ch>:
>>>
>>>
>>>
>>>>Yes, my commons-logging.properties file is in the CLASSPATH 
>>>>(WEB-INF/classes/myclass/commons-logging.properties).
>>>>
>>>>I would like to use org.apache.commons.logging.impl.SimpleLog.
>>>>
>>>>What do I have to write in the commons-logging.properties file?
>>>>How do I tell my application to use the commons-logging.properties file?
>>>>
>>>>Any further help with examples would be appreciated.
>>>>Thanx, Koni
>>>>
>>>>
>>>>Kris Schneider wrote:
>>>>
>>>>
>>>>
>>>>>Is the commons-logging.properties file located in your app's
>>>>
>>>>WEB-INF/classes dir?
>>>>
>>>>
>>>>>Quoting Koni Roth <ko...@bluewin.ch>:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>No answer until now! It looks like nobody is using commons-logging!
>>>>>>Very frustrating to be the only one using it...
>>>>>>
>>>>>>Is there really no useful example or documentation?
>>>>>>
>>>>>>Cheers and enjoy the Friday Beer.
>>>>>>Koni
>>>>>>
>>>>>>
>>>>>>-------- Original Message --------
>>>>>>Subject: How to configure commons-logging on JDK1.4
>>>>>>Date: Fri, 8 Aug 2003 10:11:58 +0200
>>>>>>From: Koni <ko...@bluewin.ch>
>>>>>>Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
>>>>>>To: commons-user@jakarta.apache.org, struts-user@jakarta.apache.org
>>>>>>
>>>>>>Hello
>>>>>>I'm using Struts 1.1 with commons-logging. My
>>>>
>>>>'commons-logging.properties'
>>>>
>>>>
>>>>>>file is in the CLASSPATH and has the following 2 entries:
>>>>>>
>>>>>>----
>>>>>>org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
>>>>>>org.apache.commons.logging.simplelog.log.LogonAction=info
>>>>>>----
>>>>>>
>>>>>>When I run my application the Log should use the 'SimpleLog', as
>>
>>defined
>>
>>>>>>in 'commons-logging.properties'. BUT it uses the default logger for my 
>>>>>>environment
>>>>>>org.apache.commons.logging.impl.Jdk14Logger!!!!
>>>>>>
>>>>>>How can I configure logging to use 'SimpleLog'?? Any examples??
>>>>>>
>>>>>>Thanks
>>>>>>Koni
> 
> 


Re: How to configure commons-logging on JDK1.4

Posted by Koni Roth <ko...@bluewin.ch>.
Kris you are great!!!
When the commons-logging.properties file is in WEB-INF/classes and *not* 
in a subdirectory it works!
Looks strange to me because I thought all the subdirectories are part of 
the CLASSPATH.

Anyway, the beer in front of me is dedicated to Kris ;-)

Thanks
Koni


Kris Schneider wrote:

> If you're happy with Jdk14Logger instead of SimpleLog, that's fine. But I just
> verified that you *can* get SimpleLog to work with JDK1.4. As I said, make sure
> commons-logging.properties is in WEB-INF/classes, *not* a subdirectory. 
> 
> Quoting Koni Roth <ko...@bluewin.ch>:
> 
> 
>>Thanks Kris
>>I read an article at http://www.onjava.com/lpt/a/4017 (section Logging, 
>>point 5). There he says explicit:
>>
>>-----
>>5. Finally, if none of the above is valid and the application is not 
>>running on JRE 1.4 and above, the application uses a built-in SimpleLog, 
>>which writes everything to System.err.
>>-----
>>
>>Because my application runs on JRE 1.4, it uses automatic the 
>>Jdk14Logger. I cannot use SimpleLog on JDK 1.4! Therefore I will use 
>>Jdk14Logger and not Log4J.
>>
>>Thank you, Koni
>>
>>Kris Schneider wrote:
>>
>>
>>>Try actually putting it in WEB-INF/classes, not WEB-INF/classes/myclass.
>>>
>>>Quoting Koni Roth <ko...@bluewin.ch>:
>>>
>>>
>>>
>>>>Yes, my commons-logging.properties file is in the CLASSPATH 
>>>>(WEB-INF/classes/myclass/commons-logging.properties).
>>>>
>>>>I would like to use org.apache.commons.logging.impl.SimpleLog.
>>>>
>>>>What do I have to write in the commons-logging.properties file?
>>>>How do I tell my application to use the commons-logging.properties file?
>>>>
>>>>Any further help with examples would be appreciated.
>>>>Thanx, Koni
>>>>
>>>>
>>>>Kris Schneider wrote:
>>>>
>>>>
>>>>
>>>>>Is the commons-logging.properties file located in your app's
>>>>
>>>>WEB-INF/classes dir?
>>>>
>>>>
>>>>>Quoting Koni Roth <ko...@bluewin.ch>:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>No answer until now! It looks like nobody is using commons-logging!
>>>>>>Very frustrating to be the only one using it...
>>>>>>
>>>>>>Is there really no useful example or documentation?
>>>>>>
>>>>>>Cheers and enjoy the Friday Beer.
>>>>>>Koni
>>>>>>
>>>>>>
>>>>>>-------- Original Message --------
>>>>>>Subject: How to configure commons-logging on JDK1.4
>>>>>>Date: Fri, 8 Aug 2003 10:11:58 +0200
>>>>>>From: Koni <ko...@bluewin.ch>
>>>>>>Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
>>>>>>To: commons-user@jakarta.apache.org, struts-user@jakarta.apache.org
>>>>>>
>>>>>>Hello
>>>>>>I'm using Struts 1.1 with commons-logging. My
>>>>
>>>>'commons-logging.properties'
>>>>
>>>>
>>>>>>file is in the CLASSPATH and has the following 2 entries:
>>>>>>
>>>>>>----
>>>>>>org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
>>>>>>org.apache.commons.logging.simplelog.log.LogonAction=info
>>>>>>----
>>>>>>
>>>>>>When I run my application the Log should use the 'SimpleLog', as
>>
>>defined
>>
>>>>>>in 'commons-logging.properties'. BUT it uses the default logger for my 
>>>>>>environment
>>>>>>org.apache.commons.logging.impl.Jdk14Logger!!!!
>>>>>>
>>>>>>How can I configure logging to use 'SimpleLog'?? Any examples??
>>>>>>
>>>>>>Thanks
>>>>>>Koni
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: How to configure commons-logging on JDK1.4

Posted by Kris Schneider <kr...@dotech.com>.
If you're happy with Jdk14Logger instead of SimpleLog, that's fine. But I just
verified that you *can* get SimpleLog to work with JDK1.4. As I said, make sure
commons-logging.properties is in WEB-INF/classes, *not* a subdirectory. 

Quoting Koni Roth <ko...@bluewin.ch>:

> Thanks Kris
> I read an article at http://www.onjava.com/lpt/a/4017 (section Logging, 
> point 5). There he says explicit:
> 
> -----
> 5. Finally, if none of the above is valid and the application is not 
> running on JRE 1.4 and above, the application uses a built-in SimpleLog, 
> which writes everything to System.err.
> -----
> 
> Because my application runs on JRE 1.4, it uses automatic the 
> Jdk14Logger. I cannot use SimpleLog on JDK 1.4! Therefore I will use 
> Jdk14Logger and not Log4J.
> 
> Thank you, Koni
> 
> Kris Schneider wrote:
> 
> > Try actually putting it in WEB-INF/classes, not WEB-INF/classes/myclass.
> > 
> > Quoting Koni Roth <ko...@bluewin.ch>:
> > 
> > 
> >>Yes, my commons-logging.properties file is in the CLASSPATH 
> >>(WEB-INF/classes/myclass/commons-logging.properties).
> >>
> >>I would like to use org.apache.commons.logging.impl.SimpleLog.
> >>
> >>What do I have to write in the commons-logging.properties file?
> >>How do I tell my application to use the commons-logging.properties file?
> >>
> >>Any further help with examples would be appreciated.
> >>Thanx, Koni
> >>
> >>
> >>Kris Schneider wrote:
> >>
> >>
> >>>Is the commons-logging.properties file located in your app's
> >>
> >>WEB-INF/classes dir?
> >>
> >>>Quoting Koni Roth <ko...@bluewin.ch>:
> >>>
> >>>
> >>>
> >>>>No answer until now! It looks like nobody is using commons-logging!
> >>>>Very frustrating to be the only one using it...
> >>>>
> >>>>Is there really no useful example or documentation?
> >>>>
> >>>>Cheers and enjoy the Friday Beer.
> >>>>Koni
> >>>>
> >>>>
> >>>>-------- Original Message --------
> >>>>Subject: How to configure commons-logging on JDK1.4
> >>>>Date: Fri, 8 Aug 2003 10:11:58 +0200
> >>>>From: Koni <ko...@bluewin.ch>
> >>>>Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> >>>>To: commons-user@jakarta.apache.org, struts-user@jakarta.apache.org
> >>>>
> >>>>Hello
> >>>>I'm using Struts 1.1 with commons-logging. My
> >>
> >>'commons-logging.properties'
> >>
> >>>>file is in the CLASSPATH and has the following 2 entries:
> >>>>
> >>>>----
> >>>>org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
> >>>>org.apache.commons.logging.simplelog.log.LogonAction=info
> >>>>----
> >>>>
> >>>>When I run my application the Log should use the 'SimpleLog', as
> defined
> >>>>in 'commons-logging.properties'. BUT it uses the default logger for my 
> >>>>environment
> >>>>org.apache.commons.logging.impl.Jdk14Logger!!!!
> >>>>
> >>>>How can I configure logging to use 'SimpleLog'?? Any examples??
> >>>>
> >>>>Thanks
> >>>>Koni

-- 
Kris Schneider <ma...@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: How to configure commons-logging on JDK1.4

Posted by Koni Roth <ko...@bluewin.ch>.
Thanks Kris
I read an article at http://www.onjava.com/lpt/a/4017 (section Logging, 
point 5). There he says explicit:

-----
5. Finally, if none of the above is valid and the application is not 
running on JRE 1.4 and above, the application uses a built-in SimpleLog, 
which writes everything to System.err.
-----

Because my application runs on JRE 1.4, it uses automatic the 
Jdk14Logger. I cannot use SimpleLog on JDK 1.4! Therefore I will use 
Jdk14Logger and not Log4J.

Thank you, Koni

Kris Schneider wrote:

> Try actually putting it in WEB-INF/classes, not WEB-INF/classes/myclass.
> 
> Quoting Koni Roth <ko...@bluewin.ch>:
> 
> 
>>Yes, my commons-logging.properties file is in the CLASSPATH 
>>(WEB-INF/classes/myclass/commons-logging.properties).
>>
>>I would like to use org.apache.commons.logging.impl.SimpleLog.
>>
>>What do I have to write in the commons-logging.properties file?
>>How do I tell my application to use the commons-logging.properties file?
>>
>>Any further help with examples would be appreciated.
>>Thanx, Koni
>>
>>
>>Kris Schneider wrote:
>>
>>
>>>Is the commons-logging.properties file located in your app's
>>
>>WEB-INF/classes dir?
>>
>>>Quoting Koni Roth <ko...@bluewin.ch>:
>>>
>>>
>>>
>>>>No answer until now! It looks like nobody is using commons-logging!
>>>>Very frustrating to be the only one using it...
>>>>
>>>>Is there really no useful example or documentation?
>>>>
>>>>Cheers and enjoy the Friday Beer.
>>>>Koni
>>>>
>>>>
>>>>-------- Original Message --------
>>>>Subject: How to configure commons-logging on JDK1.4
>>>>Date: Fri, 8 Aug 2003 10:11:58 +0200
>>>>From: Koni <ko...@bluewin.ch>
>>>>Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
>>>>To: commons-user@jakarta.apache.org, struts-user@jakarta.apache.org
>>>>
>>>>Hello
>>>>I'm using Struts 1.1 with commons-logging. My
>>
>>'commons-logging.properties'
>>
>>>>file is in the CLASSPATH and has the following 2 entries:
>>>>
>>>>----
>>>>org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
>>>>org.apache.commons.logging.simplelog.log.LogonAction=info
>>>>----
>>>>
>>>>When I run my application the Log should use the 'SimpleLog', as defined
>>>>in 'commons-logging.properties'. BUT it uses the default logger for my 
>>>>environment
>>>>org.apache.commons.logging.impl.Jdk14Logger!!!!
>>>>
>>>>How can I configure logging to use 'SimpleLog'?? Any examples??
>>>>
>>>>Thanks
>>>>Koni
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: How to configure commons-logging on JDK1.4

Posted by Kris Schneider <kr...@dotech.com>.
Try actually putting it in WEB-INF/classes, not WEB-INF/classes/myclass.

Quoting Koni Roth <ko...@bluewin.ch>:

> Yes, my commons-logging.properties file is in the CLASSPATH 
> (WEB-INF/classes/myclass/commons-logging.properties).
> 
> I would like to use org.apache.commons.logging.impl.SimpleLog.
> 
> What do I have to write in the commons-logging.properties file?
> How do I tell my application to use the commons-logging.properties file?
> 
> Any further help with examples would be appreciated.
> Thanx, Koni
> 
> 
> Kris Schneider wrote:
> 
> > Is the commons-logging.properties file located in your app's
> WEB-INF/classes dir?
> > 
> > Quoting Koni Roth <ko...@bluewin.ch>:
> > 
> > 
> >>No answer until now! It looks like nobody is using commons-logging!
> >>Very frustrating to be the only one using it...
> >>
> >>Is there really no useful example or documentation?
> >>
> >>Cheers and enjoy the Friday Beer.
> >>Koni
> >>
> >>
> >>-------- Original Message --------
> >>Subject: How to configure commons-logging on JDK1.4
> >>Date: Fri, 8 Aug 2003 10:11:58 +0200
> >>From: Koni <ko...@bluewin.ch>
> >>Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> >>To: commons-user@jakarta.apache.org, struts-user@jakarta.apache.org
> >>
> >>Hello
> >>I'm using Struts 1.1 with commons-logging. My
> 'commons-logging.properties'
> >>file is in the CLASSPATH and has the following 2 entries:
> >>
> >>----
> >>org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
> >>org.apache.commons.logging.simplelog.log.LogonAction=info
> >>----
> >>
> >>When I run my application the Log should use the 'SimpleLog', as defined
> >>in 'commons-logging.properties'. BUT it uses the default logger for my 
> >>environment
> >>org.apache.commons.logging.impl.Jdk14Logger!!!!
> >>
> >>How can I configure logging to use 'SimpleLog'?? Any examples??
> >>
> >>Thanks
> >>Koni

-- 
Kris Schneider <ma...@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: How to configure commons-logging on JDK1.4

Posted by Koni Roth <ko...@bluewin.ch>.
Yes, my commons-logging.properties file is in the CLASSPATH 
(WEB-INF/classes/myclass/commons-logging.properties).

I would like to use org.apache.commons.logging.impl.SimpleLog.

What do I have to write in the commons-logging.properties file?
How do I tell my application to use the commons-logging.properties file?

Any further help with examples would be appreciated.
Thanx, Koni


Kris Schneider wrote:

> Is the commons-logging.properties file located in your app's WEB-INF/classes dir?
> 
> Quoting Koni Roth <ko...@bluewin.ch>:
> 
> 
>>No answer until now! It looks like nobody is using commons-logging!
>>Very frustrating to be the only one using it...
>>
>>Is there really no useful example or documentation?
>>
>>Cheers and enjoy the Friday Beer.
>>Koni
>>
>>
>>-------- Original Message --------
>>Subject: How to configure commons-logging on JDK1.4
>>Date: Fri, 8 Aug 2003 10:11:58 +0200
>>From: Koni <ko...@bluewin.ch>
>>Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
>>To: commons-user@jakarta.apache.org, struts-user@jakarta.apache.org
>>
>>Hello
>>I'm using Struts 1.1 with commons-logging. My 'commons-logging.properties'
>>file is in the CLASSPATH and has the following 2 entries:
>>
>>----
>>org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
>>org.apache.commons.logging.simplelog.log.LogonAction=info
>>----
>>
>>When I run my application the Log should use the 'SimpleLog', as defined
>>in 'commons-logging.properties'. BUT it uses the default logger for my 
>>environment
>>org.apache.commons.logging.impl.Jdk14Logger!!!!
>>
>>How can I configure logging to use 'SimpleLog'?? Any examples??
>>
>>Thanks
>>Koni
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: How to configure commons-logging on JDK1.4

Posted by Reinhard <un...@public-files.de>.
The answer to your problem is: 

at the homepage of commons-logging (where you'll find the online doc) and you 
don't need to join the mailing-list of commons ;-)


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: How to configure commons-logging on JDK1.4

Posted by Kris Schneider <kr...@dotech.com>.
Is the commons-logging.properties file located in your app's WEB-INF/classes dir?

Quoting Koni Roth <ko...@bluewin.ch>:

> No answer until now! It looks like nobody is using commons-logging!
> Very frustrating to be the only one using it...
> 
> Is there really no useful example or documentation?
> 
> Cheers and enjoy the Friday Beer.
> Koni
> 
> 
> -------- Original Message --------
> Subject: How to configure commons-logging on JDK1.4
> Date: Fri, 8 Aug 2003 10:11:58 +0200
> From: Koni <ko...@bluewin.ch>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> To: commons-user@jakarta.apache.org, struts-user@jakarta.apache.org
> 
> Hello
> I'm using Struts 1.1 with commons-logging. My 'commons-logging.properties'
> file is in the CLASSPATH and has the following 2 entries:
> 
> ----
> org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
> org.apache.commons.logging.simplelog.log.LogonAction=info
> ----
> 
> When I run my application the Log should use the 'SimpleLog', as defined
> in 'commons-logging.properties'. BUT it uses the default logger for my 
> environment
> org.apache.commons.logging.impl.Jdk14Logger!!!!
> 
> How can I configure logging to use 'SimpleLog'?? Any examples??
> 
> Thanks
> Koni

-- 
Kris Schneider <ma...@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: httpclient: download file with url

Posted by Stephen Charles Huey <st...@fastmail.fm>.
This seems like a really dumb question all of a sudden.  I wracked my
brain so much over trying to interact with the HTTPS site (I got my code
working with an HTTP site days ago) that I've forgotten some of the
basics.  I'm assuming I use GET in some way, but really, I'm not sure how
to write it so that I actually download and save the file.  I'm using the
Commons HttpClient to interact with the site, and I'm guessing that
there's probably a really straightforward way to execute a GET and save
the file, so please help me out if you know...


On Mon, 11 Aug 2003 16:44:04 -0600, "Stephen Charles Huey"
<st...@fastmail.fm> said:
> I've finally figured out how to interact with an HTTPS site, but now that
> a page is displaying for me a list of URLs pointing to files I can
> download, how do I actually download a file?  Do I use Commons code, or
> java.net (e.g. something to do with URL) and java.io (your
> run-of-the-mill FileInputStream, etc) code, or some sort of combination,
> or what?  For instance, can the pathname used to instantiate a
> java.io.File object be a hyperlink on an HTTPS site?  Thanks for any
> help!  
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 

httpclient: download file with url

Posted by Stephen Charles Huey <st...@fastmail.fm>.
I've finally figured out how to interact with an HTTPS site, but now that
a page is displaying for me a list of URLs pointing to files I can
download, how do I actually download a file?  Do I use Commons code, or
java.net (e.g. something to do with URL) and java.io (your
run-of-the-mill FileInputStream, etc) code, or some sort of combination,
or what?  For instance, can the pathname used to instantiate a
java.io.File object be a hyperlink on an HTTPS site?  Thanks for any
help!  

Re: How to configure commons-logging on JDK1.4

Posted by "Craig R. McClanahan" <cr...@apache.org>.
On Fri, 8 Aug 2003, Koni Roth wrote:

> Date: Fri, 08 Aug 2003 18:47:41 +0200
> From: Koni Roth <ko...@bluewin.ch>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> To: Struts Users Mailing List <st...@jakarta.apache.org>,
>      commons-user@jakarta.apache.org
> Subject: Re: How to configure commons-logging on JDK1.4
>
> No answer until now! It looks like nobody is using commons-logging!
> Very frustrating to be the only one using it...
>
> Is there really no useful example or documentation?
>

The documentation you're seeking is in the "package description" portion
of the Javadocs.  This is true for all of the Commons packages.

http://jakarta.apache.org/commons/logging/api/

> Cheers and enjoy the Friday Beer.
> Koni
>

Craig


>
> -------- Original Message --------
> Subject: How to configure commons-logging on JDK1.4
> Date: Fri, 8 Aug 2003 10:11:58 +0200
> From: Koni <ko...@bluewin.ch>
> Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
> To: commons-user@jakarta.apache.org, struts-user@jakarta.apache.org
>
> Hello
> I'm using Struts 1.1 with commons-logging. My 'commons-logging.properties'
> file is in the CLASSPATH and has the following 2 entries:
>
> ----
> org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
> org.apache.commons.logging.simplelog.log.LogonAction=info
> ----
>
> When I run my application the Log should use the 'SimpleLog', as defined
> in 'commons-logging.properties'. BUT it uses the default logger for my
> environment
> org.apache.commons.logging.impl.Jdk14Logger!!!!
>
> How can I configure logging to use 'SimpleLog'?? Any examples??
>
> Thanks
> Koni
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: How to configure commons-logging on JDK1.4

Posted by Koni Roth <ko...@bluewin.ch>.
No answer until now! It looks like nobody is using commons-logging!
Very frustrating to be the only one using it...

Is there really no useful example or documentation?

Cheers and enjoy the Friday Beer.
Koni


-------- Original Message --------
Subject: How to configure commons-logging on JDK1.4
Date: Fri, 8 Aug 2003 10:11:58 +0200
From: Koni <ko...@bluewin.ch>
Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
To: commons-user@jakarta.apache.org, struts-user@jakarta.apache.org

Hello
I'm using Struts 1.1 with commons-logging. My 'commons-logging.properties'
file is in the CLASSPATH and has the following 2 entries:

----
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
org.apache.commons.logging.simplelog.log.LogonAction=info
----

When I run my application the Log should use the 'SimpleLog', as defined
in 'commons-logging.properties'. BUT it uses the default logger for my 
environment
org.apache.commons.logging.impl.Jdk14Logger!!!!

How can I configure logging to use 'SimpleLog'?? Any examples??

Thanks
Koni


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org




Re: How to configure commons-logging on JDK1.4

Posted by Koni Roth <ko...@bluewin.ch>.
No answer until now! It looks like nobody is using commons-logging!
Very frustrating to be the only one using it...

Is there really no useful example or documentation?

Cheers and enjoy the Friday Beer.
Koni


-------- Original Message --------
Subject: How to configure commons-logging on JDK1.4
Date: Fri, 8 Aug 2003 10:11:58 +0200
From: Koni <ko...@bluewin.ch>
Reply-To: Struts Users Mailing List <st...@jakarta.apache.org>
To: commons-user@jakarta.apache.org, struts-user@jakarta.apache.org

Hello
I'm using Struts 1.1 with commons-logging. My 'commons-logging.properties'
file is in the CLASSPATH and has the following 2 entries:

----
org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
org.apache.commons.logging.simplelog.log.LogonAction=info
----

When I run my application the Log should use the 'SimpleLog', as defined
in 'commons-logging.properties'. BUT it uses the default logger for my 
environment
org.apache.commons.logging.impl.Jdk14Logger!!!!

How can I configure logging to use 'SimpleLog'?? Any examples??

Thanks
Koni


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org