send logging context to logger function

  this breaks the console.log debug method but we'll never use it again