On 06.02.2017, at 19:45, Marshall Schor <[email protected]> wrote:
>
> I see the uimaFIT getLogger method is on a class which extends the main UIMA
> class which would have getLogger().
>
> uimaFIT's method would clash, because it returns a different Java type.
uimaFIT's ExtendedLogger extends the UIMA Logger.
I have tested adding a getLogger() method to AnalysisComponent_ImplBase in
UIMA-CORE:
protected Logger getLogger()
{
return getContext().getLogger();
}
That doesn't seem to clash with the uimaFIT getLogger() declaration:
public ExtendedLogger getLogger() {
if (logger == null) {
logger = new ExtendedLogger(getContext());
}
return logger;
}
where ExtendedLogger implements Logger.
So I guess we could stay with "getLogger()" instead of "getUimaLogger()".
WDYT?
Cheers,
-- Richard