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

Provide a built in public EmptyWireLoggerFactory class #2776

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

dnkoutso
Copy link
Collaborator

@dnkoutso dnkoutso commented Jan 7, 2024

It seems there is no --quiet option in Wire because it is probably obviated by the usage of --logger_factory_class argument.

This PR makes it easy for scripts that use Wire not to have to provide their own JAR for a built in "quiet" mode by exposing an empty logger factory and implementation. This now simply works by adding "--logger_factory_class=com.squareup.wire.schema.EmptyWireLoggerFactory" when invoking Wire.

@dnkoutso dnkoutso requested a review from oldergod January 7, 2024 14:42
@@ -1717,24 +1717,4 @@ class WireRunTest {
logs.add("unusedExcludesInTarget: $unusedExcludes")
}
}

class CustomLoggerFactory : WireLogger.Factory {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was unused so it was deleted.

@dnkoutso dnkoutso force-pushed the expose_built_in_empty_logger branch from fd26ff2 to b15fec2 Compare January 7, 2024 14:58
@oldergod
Copy link
Member

sweet, thank you

@oldergod oldergod merged commit a6393f9 into master Jan 15, 2024
7 checks passed
@oldergod oldergod deleted the expose_built_in_empty_logger branch January 15, 2024 10:21
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.

None yet

2 participants