Skip to content

AKitLog constructor without IPropertySupport#673

Open
Rongrrz wants to merge 1 commit into
mainfrom
Convenient-way-to-create-AKitLog
Open

AKitLog constructor without IPropertySupport#673
Rongrrz wants to merge 1 commit into
mainfrom
Convenient-way-to-create-AKitLog

Conversation

@Rongrrz

@Rongrrz Rongrrz commented May 2, 2026

Copy link
Copy Markdown
Contributor

Why are we doing this?

Whats changing?

Questions/notes for reviewers

How this was tested

  • unit tests added
  • tested on robot

@Rongrrz Rongrrz requested a review from a team as a code owner May 2, 2026 03:44
this(parent.getPrefix());
}

public AKitLogger(Object object) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What was the situation you wanted this for? Should it instead ask for a string name?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I thought that it was more convenient to make AKitLoggers in situations where the object doesn't have a prefix, where we can just do new AKitLogger(this). However, thinking about it more, this is probably less necessary as the more explicit, already-existing version of new AKitLogger(this.getClass().getName()) also seems more reasonable, though for that one it's a longer line and you'll have to manually append a "/".

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