Skip to main content

The Platform Logging API and Service

  • Chapter
  • First Online:
Exploring Java 9

Abstract

Logging is an important aspect of application development. Many logging frameworks are available for use in the Java platform, including popular choices like Apache Log4j 2 (https://logging.apache.org/log4j/2.x/) and Logback (https://logback.qos.ch/). SLF4J is commonly used as the facade of different logging implementations. Java also has its own logging implementation, the java.util.logging API, which was added in Java 1.4. Even though java.util.logging is the built-in logging solution used by the Java standard library, it’s not very popular. Most Java applications still use external logging frameworks. The JDK itself and the applications running on top of it may use different logging frameworks. If an application error is actually related to the Java standard library, even though such an error is unlikely, then two separate logging frameworks will make the error diagnostics much harder. In situations in which you are using two separate logging frameworks, you will also need to configure both logging frameworks, and their configurations are likely to have duplications.

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

Access this chapter

eBook
USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 16.99
Price excludes VAT (USA)
  • Compact, lightweight 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

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Fu Cheng

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Cheng, F. (2018). The Platform Logging API and Service. In: Exploring Java 9. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3330-6_6

Download citation

Publish with us

Policies and ethics