Pluf Framework

Pluf Framework Commit Details


Date:2010-04-04 10:03:23 (14 years 8 months ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:a8919ef7836f3e8ab44586f9c34b77a2981201b1
Parents: 8e26c8fc0372f9a5c9eba2e84d6b16a2bebbc16e
Message:Improved the performance by using only one function call to log on file.

Changes:

File differences

src/Pluf/Log/File.php
5353
5454
5555
56
57
58
59
56
6057
6158
Pluf_Log::$reverse[$elt[1]].': '.
json_encode($elt[2]);
}
$fp = fopen($file, 'a');
flock($fp, LOCK_EX); // Blocking call.
fputs($fp, implode(PHP_EOL, $out).PHP_EOL);
fclose($fp) ; // release the lock
file_put_contents($file, implode(PHP_EOL, $out).PHP_EOL, FILE_APPEND);
}
}

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.05370s using 13 queries.