Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can somebody post links for Log4j tutorial [closed]

Tags:

java

log4j

Whenever i search in the internet for log4j tutorial, i got the sample property filr or configuration file, but did not get the tutorial on how to configure property file and xml file...

The official documentation of apache for log4j is not clear,

Can somebody post the link for log4j tutorials...?

If there is any books available online, it would be helpful to download and study..

like image 847
user617597 Avatar asked Feb 15 '11 10:02

user617597


People also ask

How does log4j work in Java?

Log4j has three main components: loggers, appenders, and layouts. Loggers are named destinations that capture log messages and send them to appenders. Appenders deliver log messages to their destinations, such as files, sockets, or consoles. Layouts are used to define the formatting of log messages.

Why do we use log4j in project?

log4j is a tool to help the programmer output log statements to a variety of output targets. In case of problems with an application, it is helpful to enable logging so that the problem can be located. With log4j it is possible to enable logging at runtime without modifying the application binary.

What is meant by log4j?

log4j is a reliable, fast and flexible logging framework (APIs) written in Java, which is distributed under the Apache Software License. log4j is a popular logging package written in Java. log4j has been ported to the C, C++, C#, Perl, Python, Ruby, and Eiffel languages.


1 Answers

This tutorial from Lalinuna is great. There is also pdf and source code with snippets of code. Go for it :)

like image 135
kajo Avatar answered Sep 22 '22 09:09

kajo