Skip to main content

Using the Apache Log Tag Library

  • Chapter
Pro Apache Log4j
  • 349 Accesses

Conclusion

In this chapter, we discussed a newly released tag library, Log, for using log4j within a JSP to perform logging. This solves the age-old problem of how to establish controlled logging from within a JSP. By changing the configuration, it is possible to redirect logging information to any preferred destination in any desired format. But careful consideration is required before you include in your Web application CPU-intensive logging operations such as writing logging data to a database, as it might affect the performance of that application.

This brings us to the end of the log4j discussion. All the topics explained in Chapters 2 through 9 should help you understand the internals of log4j and how to use it in practical applications. The smaller examples in these chapters should enable you to grasp the concepts presented and see quick results to better understand the use of log4j. The more extensive examples should help you correlate the use of log4j with real-life applications.

There is always more to learn about any topic. But we have created a skeleton and given it a shape, and now you are in a position to build on it. In Chapter 10, we will look at some of the best practices involved in using Apache log4j.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 54.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints and permissions

Copyright information

© 2005 Samudra Gupta

About this chapter

Cite this chapter

(2005). Using the Apache Log Tag Library. In: Pro Apache Log4j. A-Press. https://doi.org/10.1007/978-1-4302-0034-5_9

Download citation

Publish with us

Policies and ethics