This chapter is dedicated to the advanced topics of logging with log4j API. Writing logging information to a console or to a file is limited in terms of flexibility and reuse. The logging information printed to a console is pretty volatile and likely to disappear once the application exits its present running instance. Therefore, the console-based logging information is more suitable for development-stage debugging messages.


Configuration File Application Module Custom Logger Public Class Pattern Layout 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Samudra Gupta 2003

Authors and Affiliations

  • Samudra Gupta

There are no affiliations available

Personalised recommendations