Fluent Logging In Java Using Flogger
Keywords:
Software Logging, Fluent APIs, Software Debugging, Auditing SoftwareAbstract
Systems logs are very important for detecting problems in applications. Not only this, they are useful for auditing, monitoring and analysis too. Therefore, it is important to have adequate logging in code. Often adding too many log statements can lead to problems like performance issues and log spam. This means tweaking log behavior is necessary, which can add a lot of management overhead for developers. To solve this problem, logging APIs exist which make this task easier. Logging APIs can improve the readability, performance and ease of logging. Several logging APIs are available for logging in Java. The Flogger API has several advantages over other options. It is simple and fluent, thus, increasing readability. It has support for several quality-of-life features which not only make it easy to add logs in code, but also ensure the performance overhead of logging is minimal. Log behavior is configurable and can be tweaked at runtime. In this paper, we review the Flogger API, its usage, features and advantages over other options
