11 Logging frameworks
This chapter covers:
- Examining the typical characteristics of logging frameworks,
- Selecting logging frameworks for application development,
- Connecting logging frameworks directly to Fluentd,
- Sending log events from our applications directly to Fluentd without a logging framework.
In the previous chapter, we looked at how we can create log events that can be used to give the most meaning and value. Another significant way we can easily derive more value from logs is by using logging frameworks for our application development. Most programming languages these days will be able to use a logging framework. In some cases, the third-party ones predate the language native feature and become something of a de-facto standard. Other logging frameworks have come as part of an application container or platform to address weaknesses perceived or proven in the native solutions.
This chapter will explore the logging framework landscape as there is a range of commonalities in their capability and often in design. A general understanding of this will help us appreciate the 'art of the possible' and make informed decisions when choosing a framework. We will also look at whether the more dominant frameworks for different languages can support the ability to connect directly to Fluentd. Fluentd has also helped us in this space by providing logging libraries for multiple languages, so we'll look at those to understand how they may fit into the options we have.