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

Clarify logging #167

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

Clarify logging #167

wants to merge 1 commit into from

Conversation

twogee
Copy link
Contributor

@twogee twogee commented Nov 1, 2021

No description provided.

@twogee
Copy link
Contributor Author

twogee commented Nov 2, 2021

Hopefully these changes make logging methods a bit more comprehensible.
They are backwards binary compatible (according to japicmp 0.15.4).

@bodewig
Copy link
Member

bodewig commented Nov 6, 2021

I may have become used to the existing logging setup, but to be honest your proposed change doesn't make anything more comprehensible to me. That may just be me.

@twogee
Copy link
Contributor Author

twogee commented Nov 7, 2021

The changes make it clear which objects control logging.

These are DefaultLogger (which currently has a protected log method), Project and ProjectComponent (a superclass of Task, so the latter simply inherits its log method). TraxLiaison sets a Logger, no need for the XSLTLogger.

The next step will be to remove the code duplication discussed in #166 by moving the getMailerImplementation to Mailer and passing a Logger to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants