system/Log/Logger.php
protected function cleanFileNames(string $file): string
	{
		$file = str_replace(APPPATH, 'APPPATH/', $file);
		$file = str_replace(SYSTEMPATH, 'SYSTEMPATH/', $file);
		$file = str_replace(FCPATH, 'FCPATH/', $file);

		return $file;
	}
protected function cleanFileNames(string $file): string
	{
		$file = str_replace(APPPATH, 'APPPATH/', $file);
		$file = str_replace(SYSTEMPATH, 'SYSTEMPATH/', $file);
		$file = str_replace(FCPATH, 'FCPATH/', $file);

		return $file;
	}
Cleans the paths of filenames by replacing APPPATH, SYSTEMPATH, FCPATH
with the actual var. i.e.

/var/www/site/app/Controllers/Home.php
becomes:
APPPATH/Controllers/Home.php

@param $file

@return string