Skip to content
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

Make LoggerI internal (Java) #2865

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Conversation

bernardnormier
Copy link
Member

This PR fixes #2776.

Copy link
Member

@InsertCreativityHere InsertCreativityHere left a comment

Choose a reason for hiding this comment

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

looks good!

public class LoggerI implements Logger {
public LoggerI(String prefix, String file) {
class LoggerI implements Logger {
LoggerI(String prefix, String file) {
_prefix = prefix;

Choose a reason for hiding this comment

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

Pretty minor nitpick, but we can just set file here at the top:

Suggested change
_prefix = prefix;
_prefix = prefix;
_file = file;

If file is non-empty we set _file equal to it,
and if it is the empty string, we set _file equal to the empty string.
Same effect.

Copy link
Member

@pepone pepone left a comment

Choose a reason for hiding this comment

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

Looks good! We could consider improving this in a follow-up PR by splitting the logger into two: a file logger that always writes to a file and a console logger that always prints to the console.

@bernardnormier bernardnormier merged commit 732e483 into zeroc-ice:main Oct 8, 2024
17 checks passed
InsertCreativityHere pushed a commit to InsertCreativityHere/compiler-comparison that referenced this pull request Jan 1, 2025
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.

Don't re-use com.zeroc.Ice.LoggerI in IceGridGui.
3 participants