BasicLogger is not meant to replace any other logging library. It is primarily used for debugging during
development. ojAlgo has zero dependencies, and does not force any specific logging framework on you. But,
that meant we had to create something a little better than plain
System.out
for internal use.
- If you want to redirect whatever ojAlgo outputs then set
DEBUG
and
ERROR
to something suitable. BasicLogger.Printer is an interface so it
should be possible to create some implementation that wraps your logging system. ojAlgo supplies 3
implementations of that interface.
- ojAlgo typically doesn't do much logging. There's really not much to redirect. The main/only area where
BasicLogger is used is for debugging the various optimisation solvers. This is not intended to be "on" in
production.
- The logging you need, you do in your code. ojAlgo's main contribution here is to have useful toString()
methods.
- If you want to stop any/all possible output from ojAlgo then set
DEBUG
and
ERROR
to null.