This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Jakarta Commons Logging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Jakarta Commons Logging" Watch "Jakarta Commons Logging" New topic
Author

Jakarta Commons Logging

Hash Bash
Greenhorn

Joined: Dec 25, 2005
Posts: 2
Hi

I am using Jakarta Commons Logging as a logging mechanism for my APIs. I noticed that it logs in the verbose output. And I'm wondering if there is a method to log output into a file (e.g. HTML format) for daily archival purposes.

Pls kindly enlighten me
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41062
    
  43
Welcome to JavaRanch.

Commons Logging is just a thin API layer on top of other logging APIs, most notably log4j and java.util.logging. You can configure either one of those to log in whichever way you want. E.g., log4j has DailyRollingFileAppender, which creates a new log file for each day.


Ping & DNS - my free Android networking tools app
Hash Bash
Greenhorn

Joined: Dec 25, 2005
Posts: 2
Hi Ulf Dittmer

Do u mean I should use log4j instead or there is a way I can reference log4j from within JCL?

Well the daily logging of log4j seemed good
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41062
    
  43
I have no idea what JCL is or does or can do, so I can't help you with that question.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60755
    
  65

"Hash Bash",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jakarta Commons Logging
 
Similar Threads
can I do System.out.println() in my servlet
log4j or JDK 1.4 java.util.logging ?
Problem in accessing struts-blank application
Are you using java.util.logging?
WAS commons-logging problem SOLVED (without PARENT_LAST)