logger.error should accept error object, objects, and/or string.
All the other logger functions should allow for objects, strings, array, or other data types.
If it is error, you can call the .toString() method.
https://stackoverflow.com/questions/30469261/checking-for-typeof-error-in-js
JSON.stringify( [1,2,3], null, 2)