Closed
Labels
Description
Depends on #83
We already have cases of competing LogServices, e.g. the DefaultLogService and SLF4J. It is becoming clear that there is a need for additional logging functionality, for example in the legacy layer we would like to pass error messages and exceptions to IJ.log or IJ.handleException functionality.
However this is not possible at the moment without competing with other LogService implementations.
Once we can differentiate consuming and non-consuming Handlers, though, we can refactor the DefaultLogService to use non-consuming Handler plugins. Then whichever implementations are present can log a given event as appropriate.
Activity
dscho commentedon Jun 13, 2014
Introducing such a paradigm opens a can of worms, so we might want to go with "meta-handlers" instead that have the highest priority, delegate to the highest-priority non-meta handler, and serve an additional category of plugins: the non-consuming ones. In other words, it might be better to add a different interface altogether for non-consuming loggers and to leverage the existing framework to service them in addition to the default logger.
ctrueden commentedon Mar 23, 2015
For the case of logging stdout/stderr specifically, the issue is now solved with #152. I am not seeing another immediate use case for non-consuming handlers. We sort of have a pattern like that already with the
ConsoleArgumentandConsoleService; let's not complicate things any further for now, until/unless a clear need arises.