function customLog(originalFunction) {
  return function (...args) {
    args = args.map((arg) => {
      if (typeof arg === 'object' && arg !== null) {
        // Format the object with colors and unlimited depth
        return inspect(arg, { colors: true, depth: null })
      }
      return arg
    })
    originalFunction.apply(console, args)
  }
}
Custom log function that formats objects with colors regardless of their depth.

@param {*} originalFunction Original console function to be modified
@returns