churchtools / churchtools-js-client

JavaScript client to easily access the ChurchTools REST-API
Apache License 2.0
18 stars 3 forks source link

set console.log as logger #20

Closed Ainias closed 2 years ago

Ainias commented 2 years ago

Set console.log in getAxiosLogerConfig() as logger explicitly. When a project is overriding console.log (e.g. to write the logs into a file), axiosLogger will still use the old (normal) console.log method, since it has it saved in a variable. With this change we give always the current definition of console.log to the logger.