src/Writer.php
public static function writeLogPre($var, $filename = '__preformated.log', $addRequestData = false, $traceIndex = 1)
    {
        $msg = self::_preFormat($var, false, $traceIndex, true);

        if($addRequestData) {
            $msg = Debug::formatHeaderWithTime() . $msg . Debug::formatRequestData();
        }

        return self::writeLogVerbose($filename, $msg);
    }
public static function writeLogPre($var, $filename = '__preformated.log', $addRequestData = false, $traceIndex = 1)
    {
        $msg = self::_preFormat($var, false, $traceIndex, true);

        if($addRequestData) {
            $msg = Debug::formatHeaderWithTime() . $msg . Debug::formatRequestData();
        }

        return self::writeLogVerbose($filename, $msg);
    }
public static function writeLogPre ( $ var , $ filename = '__preformated.log' , $ addRequestData = false , $ traceIndex = 1 ) { $ msg = self :: _preFormat ( $ var , false , $ traceIndex , true ) ; if ( $ addRequestData ) { $ msg = Debug :: formatHeaderWithTime ( ) . $ msg . Debug :: formatRequestData ( ) ; } return self :: writeLogVerbose ( $ filename , $ msg ) ; }
It will use preVarDump to format variable and WriteLogVerbose to log it to file

@param  mixed  $var            variable to parse and log
@param  string $filename       log file name
@param  bool   $addRequestData if we want to log more data, request, time...
@param  int    $traceIndex     debug trace index so we have where method was called
@return bool
It will use preVarDump to format variable and WriteLogVerbose to log it to file