avadev/AvaTax-REST-V2-JS-SDK

BaseLogger is not exported

Closed this issue · 0 comments

From the docs:

 logOptions: {
          	logEnabled: true, // toggle logging on or off, by default its off.
          	logLevel: 3, 	// logLevel that will be used, Options are LogLevel.Error (0), LogLevel.Warn (1), LogLevel.Info (2), LogLevel.Debug (3)
          	logRequestAndResponseInfo: true, 	// Toggle logging of the request and response bodies on and off.
          	logger: myCustomLogger 	// (OPTIONAL) Custom logger can be passed in that implements the BaseLogger interface (e.g. debug, info, warn, error, and log functions) Otherwise console.log/error etc will be used by default.
          },

In many cases we will need to implement our own implementation of the BaseLogger. This would be much easier if the BaseLogger was exposed. Today we must keep a copy of the BaseLogger in our code base, that must stay up-to-date with this library