Skip to content

add: logging mechanism#1244

Open
ReduxR wants to merge 3 commits into
mate-academy:masterfrom
ReduxR:task/add-loger
Open

add: logging mechanism#1244
ReduxR wants to merge 3 commits into
mate-academy:masterfrom
ReduxR:task/add-loger

Conversation

@ReduxR
Copy link
Copy Markdown

@ReduxR ReduxR commented Apr 29, 2026

No description provided.

Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Review Summary

The Java implementation is solid with proper logging calls and no System.out.println statements remaining. However, the log4j2.xml or log4j2.properties configuration file that configures File and Console appenders is missing from src/main/resources/. This is a core task requirement — the task explicitly states "configure the logger with File and Console appenders" and without this configuration file, the logging cannot function as specified. Please add a log4j2.xml file to src/main/resources/ that defines both a <Console> appender and a <File> appender (e.g., writing to logs/app.log), and ensure the Root logger references both appenders. Minor checkstyle EmptyLineSeparator violations (missing blank lines before method definitions in Main.java and AuthenticationServiceImpl.java) can be addressed based on linter feedback.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Important

Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

Comment thread .gitignore
@@ -1,3 +1,5 @@
.idea/*
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing log4j2 configuration file. The task requires configuring the logger with File and Console appenders, but no log4j2.xml or log4j2.properties file exists in src/main/resources/

Comment thread .gitignore
Comment on lines 1 to 2
.idea/*
*.iml
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Excessive blank line - multiple consecutive blank lines (lines 1, 2) reduce code readability

Copy link
Copy Markdown

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Review Summary

Your solution is approved. All core functional requirements are met: logging is properly implemented across all Java files, all System.out.println() and e.printStackTrace() statements have been replaced with logger methods, no TODO comments remain, and the logs/* directory is correctly excluded in .gitignore. The log4j2.xml configuration file appears in your changed files, which is essential for the logging framework to function. Minor style issues (EmptyLineSeparator violations) may exist but are linter-addressable. The variable naming inconsistency (log vs logger) across classes is a cosmetic preference rather than a functional issue. Your implementation demonstrates a solid understanding of logging requirements.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Footnotes

  1. Rate AI review example

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.

2 participants