Conclusion
In this chapter, we have examined how to extend the existing log4j framework to write our own application-specific logging components. The plug-and-play nature of log4j makes it easy to integrate custom components into the existing framework. The default capability of log4j is versatile and meets most of the routine requirements in logging activity. However, you might venture to extend the existing framework should you really need it. This chapter provides a guideline for implementing custom logging components to use with log4j.
The next chapter presents a complete log4j example using the concepts discussed so far.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Similar content being viewed by others
Rights and permissions
Copyright information
© 2005 Samudra Gupta
About this chapter
Cite this chapter
(2005). Extending log4j to Create Custom Logging Components. In: Pro Apache Log4j. A-Press. https://doi.org/10.1007/978-1-4302-0034-5_6
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0034-5_6
Publisher Name: A-Press
Print ISBN: 978-1-59059-499-5
Online ISBN: 978-1-4302-0034-5
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books