Talk:Log4j

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Java (Rated Stub-class, Mid-importance)
WikiProject icon This article is within the scope of WikiProject Java, a collaborative effort to improve the coverage of Java on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
Stub-Class article Stub  This article has been rated as Stub-Class on the project's quality scale.
 Mid  This article has been rated as Mid-importance on the project's importance scale.
 
Note icon
This article has been automatically rated by a bot or other tool because one or more other projects use this class. Please ensure the assessment is correct before removing the |auto= parameter.
WikiProject Computing / Software (Rated Stub-class)
WikiProject icon This article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
Stub-Class article Stub  This article has been rated as Stub-Class on the project's quality scale.
 ???  This article has not yet received a rating on the project's importance scale.
Taskforce icon
This article is supported by WikiProject Software.
 
Note icon
This article has been automatically rated by a bot or other tool as Stub-Class because it uses a stub template. Please ensure the assessment is correct before removing the |auto= parameter.

Fair use rationale for Image:Log4j.jpg[edit]

Nuvola apps important.svg

Image:Log4j.jpg is being used on this article. I notice the image page specifies that the image is being used under fair use but there is no explanation or rationale as to why its use in this Wikipedia article constitutes fair use. In addition to the boilerplate fair use template, you must also write out on the image description page a specific explanation or rationale for why using this image in each article is consistent with fair use.

Please go to the image description page and edit it to include a fair use rationale. Using one of the templates at Wikipedia:Fair use rationale guideline is an easy way to insure that your image is in compliance with Wikipedia policy, but remember that you must complete the template. Do not simply insert a blank template on an image page.

If there is other other fair use media, consider checking that you have specified the fair use rationale on the other images used on this page. Note that any fair use images uploaded after 4 May, 2006, and lacking such an explanation will be deleted one week after they have been uploaded, as described on criteria for speedy deletion. If you have any questions please ask them at the Media copyright questions page. Thank you.BetacommandBot 23:41, 5 June 2007 (UTC)

Why is "outdated" on the Log4cxx link?[edit]

It doesn't look outdated to me. I'll remove it, but if I'm missing something let me know.

Log4j 1.3 and 2.0 branches[edit]

The Log4j 1.3 and 2.0 branches should probably be discussed. Some 1.3 alpha versions were released, but development has been abandoned. From http://logging.apache.org/log4j/:

Apache log4j has three development branches: a stable branch, 1.2, a discontinued branch, 1.3 and an experimental branch 2.0.
Apache log4j 1.2 releases are widely deployed. Development on the 1.2 branch is generally limited to bug fixing and minor enhancements.
Apache log4j 1.3 alpha releases are in limited use. Apache log4j 1.3 added many interesting features, but was compatibility with log4j 1.2 was problematic. Many features original developed for log4j 1.3 have been back-ported as companions for log4j 1.2. No further development is anticipated.
Apache log4j 2.0 is an experimental development branch for logging services designed for Java 5 and later.

-- Ernstdehaan 07:52, 3 September 2007 (UTC)

Why is "outdated" on the Log4cxx link again?[edit]

Someone put "outdated" on the log4cxx link again. I don't think it is outdated. If there is a reason for putting "outdated" on the log4cxx link, please indicate what it is. —Preceding unsigned comment added by 132.228.195.206 (talk) 14:27, 16 October 2007 (UTC)

I confirm that, according to answer received on log4j users mailing list, log4cxx isn't outdated. --Arnauld (talk) 19:02, 16 October 2007 (UTC)

Log4j in Application Server like Tomcat etc.[edit]

Just Adding log4j.properties & logger statement in java code doesn't generate log files in the case of the Application Server such as Tomcat. Following method can be added in the Main class & should be called via suitable methods

public void initLogging(){

       try{
           URL fl = this.getClass().getClassLoader().getResource("log4j.properties");
           PropertyConfigurator.configure(fl);
           logger.debug("Reloading log4j.properties file.");
       }
       catch(Exception e)
       {
           logger.error(e);
       }
   }

Following should be added in the log4j.properties is also needed. log4j.logger.<Your_Package_Name>=<DEBUG_LEVEL>

  • This is not the recommended initialization procedure for an application server such as tomcat. This is a very helpful link: [1]. Check out the section named "Default Initialization under Tomcat" - basically you define a servlet that runs upon application startup

Too much advertissement links[edit]

We should remove all direct links to external web site selling softwares and so on... May be also: add PatternLayout chapter integrating a TTCC subsection Oliver H (talk) 17:10, 2 July 2010 (UTC)

TTCC[edit]

I just wanted to say how helpful the TTCC section is. Adding links to it in my log4j.xml config files :) Here's hoping the link doesn't get removed! --Brilong87 (talk) 16:08, 28 February 2011 (UTC)

Log4j[edit]

Log4j —Preceding unsigned comment added by 219.65.191.106 (talk) 08:21, 7 October 2010 (UTC)

Specifying Where Output Goes[edit]

It is not very clear to me how to specify where the output file is to be located. Description of the defaults (if any) would be appreciated too. Dan Aquinas (talk) 23:31, 7 November 2012 (UTC)