Currently, we use the Logger class within the compiler internals and API functions.
We should define the ILogger interface containing declarations of the logging functions and change all the compiler functions to accept that interface as a parameter. This will enable third-party tools to implement their own loggers with their own definitions of the error/debug/warn/info methods.
Currently, we use the
Logger
class within the compiler internals and API functions.We should define the
ILogger
interface containing declarations of the logging functions and change all the compiler functions to accept that interface as a parameter. This will enable third-party tools to implement their own loggers with their own definitions of theerror
/debug
/warn
/info
methods.