Skip to content

Sheffield | 26-Java-June | Hassan Osman | Sprint 5 | Prep: Logging - #78

Open
HassanOHOsman wants to merge 6 commits into
CodeYourFuture:mainfrom
HassanOHOsman:prep/sprint5-logging
Open

HassanOHOsman wants to merge 6 commits into
CodeYourFuture:mainfrom
HassanOHOsman:prep/sprint5-logging

Conversation

@HassanOHOsman

@HassanOHOsman HassanOHOsman commented Aug 26, 2026 •

Copy link
Copy Markdown

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Task code

CYF-Java Sprint 5-Logging

In this PR I set up SLF4J and Logback logging with configurable levels: in exercise 1, I added periodic logging inside a loop, whereas in exercise 2, I explored MDC to trace request context, created a second static methods to be called from another one to eventually look at how logging actually behaves in a real app.

… exercise 2.

2. Set up pom.xml with slf4j & logback as dependencies.
… processing time, and then call it from inside simulateRequest method using debug-level logs.

2. update the configuration level to "Debug" so that this level and more sever levels gets displayed in the output destination file.
@HassanOHOsman HassanOHOsman added 📅 Sprint 5 Assigned during Sprint 5 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 26, 2026
@HassanOHOsman HassanOHOsman changed the title Sheffield | 26-Java-June | Hassan Osman | Sprint 4 | Prep: Logging Sheffield | 26-Java-June | Hassan Osman | Sprint 5 | Prep: Logging Sep 1, 2026
@jacknewman1995 jacknewman1995 self-assigned this Sep 4, 2026

@jacknewman1995 jacknewman1995 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Not a huge amount to review here but looks good!

@HassanOHOsman

Copy link
Copy Markdown
Author

Hi Jack! If all good here, would you mind changing the label from "Review Still in Progress" to "Complete", please?
Thank you very much! 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress 📅 Sprint 5 Assigned during Sprint 5 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants