log = new Log; $monolog->pushHandler(new ClockworkHandler($this->log)); } // Adds log entries to the request public function resolve(Request $request) { $request->log()->merge($this->log); return $request; } // Reset the data source to an empty state, clearing any collected data public function reset() { $this->log = new Log; } }