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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply 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: 35252
    
    7
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.


Android appsImageJ pluginsJava web charts
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: 35252
    
    7
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: 56204
    
  13

"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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Jakarta Commons Logging
 
Similar Threads
log4j or JDK 1.4 java.util.logging ?
WAS commons-logging problem SOLVED (without PARENT_LAST)
Are you using java.util.logging?
Problem in accessing struts-blank application
can I do System.out.println() in my servlet