aspose file tools*
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 Spring in Action this week in the Spring 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: 42286
    
  64
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: 42286
    
  64
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: 61433
    
  67

"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]
 
Don't get me started about those stupid light bulbs.
 
subject: Jakarta Commons Logging