Skip to content

Update HashLog.java ➕ #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update HashLog.java ➕ #1

wants to merge 1 commit into from

Conversation

cp12r
Copy link

@cp12r cp12r commented Mar 24, 2025

Constructor Overloading: Two constructors for creating logs with or without exceptions.
StringBuilder Usage: Efficient string concatenation in the createLog method.
Timestamp Formatting: Formats timestamp based on settings for clean output.
Exception Handling: Appends exception message only if it exists.
Immutable Date Return: Returns a new Date object to prevent modification.

exception Handling & clear method names + timestamp formatting
@cp12r cp12r requested a review from Shuvlyy March 24, 2025 15:15
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.

1 participant