Skip to content

9 add logger to project#11

Merged
XavierJCallait merged 3 commits intomainfrom
9-add-logger-to-project
Aug 6, 2025
Merged

9 add logger to project#11
XavierJCallait merged 3 commits intomainfrom
9-add-logger-to-project

Conversation

@XavierJCallait
Copy link
Owner

Adds SLF4J/logback logger to files with configured output. Level set to info, with debug messages added to code.

@XavierJCallait XavierJCallait linked an issue Aug 6, 2025 that may be closed by this pull request
@XavierJCallait XavierJCallait requested a review from Copilot August 6, 2025 03:48
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive logging functionality to the project by integrating SLF4J with Logback. The changes replace System.out.println and System.err.println calls with proper logging statements and configure logging output to the console.

  • Adds SLF4J and Logback dependencies to the project
  • Configures Logback with console output and appropriate log levels
  • Replaces System.out/System.err calls with structured logging throughout the codebase

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
pom.xml Adds SLF4J API and Logback Classic dependencies
src/main/resources/logback.xml Configures logging with console appender and log levels
src/main/java/app/InventoryApp.java Replaces System.out calls with logger and adds debug logging
src/main/java/util/AppShutdown.java Adds info-level logging for application shutdown
src/main/java/util/DatabaseManager.java Adds debug logging for database initialization
src/main/java/util/EnvironmentVariableInitializer.java Replaces System.err with logger.error and adds debug logging
src/main/java/util/HibernateUtil.java Adds debug logging for Hibernate SessionFactory configuration

@XavierJCallait XavierJCallait merged commit e38fbe8 into main Aug 6, 2025
3 checks passed
@XavierJCallait XavierJCallait deleted the 9-add-logger-to-project branch August 6, 2025 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add logger to project

1 participant