Skip to content

Clarify logging#167

Open
twogee wants to merge 1 commit into
apache:masterfrom
twogee:logging
Open

Clarify logging#167
twogee wants to merge 1 commit into
apache:masterfrom
twogee:logging

Conversation

@twogee

@twogee twogee commented Nov 1, 2021

Copy link
Copy Markdown
Contributor

No description provided.

@twogee

twogee commented Nov 2, 2021

Copy link
Copy Markdown
Contributor Author

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

@bodewig

bodewig commented Nov 6, 2021

Copy link
Copy Markdown
Member

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

twogee commented Nov 7, 2021

Copy link
Copy Markdown
Contributor Author

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

Development

Successfully merging this pull request may close these issues.

2 participants