FreakyF / Weather-track

A simple real-time weather tracking app with graphical user interface written in java.
MIT License
0 stars 0 forks source link

Decide on a Logging Framework #20

Closed Tymisko closed 1 year ago

Tymisko commented 1 year ago

Logging is an essential aspect of any application. It aids in debugging, identifying issues in production, and monitoring application performance. In this task, we will conduct research and make a decision on which logging framework is the most suitable for our project's needs.

Tasks include:

Acceptance Criteria:

  1. A thorough comparison of different logging frameworks has been conducted.
  2. A logging framework has been chosen for our project.
FreakyF commented 1 year ago
Feature Logback Log4j
Logging Levels Support for multiple logging levels (e.g., DEBUG, INFO, ERROR) Support for multiple logging levels (e.g., DEBUG, INFO, ERROR)
Configuration XML and Groovy configuration options XML and properties configuration options
Performance High-performance logging engine High-performance logging engine
Flexibility Highly customizable and extensible Highly customizable and extensible
Appender Support Various appenders available (e.g., Console, File, SMTP) Various appenders available (e.g., Console, File, SMTP)
Filter Support Comprehensive filtering capabilities Comprehensive filtering capabilities
Contextual Logging Support for Mapped Diagnostic Context (MDC) Support for Mapped Diagnostic Context (MDC)
Internationalization Localization support for log messages Localization support for log messages
Integration Seamless integration with other libraries and frameworks Seamless integration with other libraries and frameworks
Documentation Well-documented with extensive user guides and examples Well-documented with extensive user guides and examples
Community Support Large and active community support Large and active community support
Production Readiness Widely used in production environments Widely used in production environments
Compatibility N/A N/A
Logging Facade Not a facade but a standalone logging framework Not a facade but a standalone logging framework
Licensing Dual licensing: LGPL and EPL Apache License 2.0

Summary

The logging framework will be Logback, a Log4j successor, because it is faster, more efficient and more flexible than its predecessor.