Skip to content
Snippets Groups Projects
Commit b2424485 authored by Henri-Damien LAURENT's avatar Henri-Damien LAURENT
Browse files

dev#176789 : task#179397 : log to temp file

parent 6b03fc6c
Branches
Tags
1 merge request!4773dev#176789 : task#179397 : log to temp file
Pipeline #24162 passed with stage
in 24 minutes and 4 seconds
......@@ -13,23 +13,7 @@ It stores records with related items depending on the subfield parameter.
Usage : php split_unimarc_by_site.php <file_to_split_path> <subfield_tag_to_split_file_on> <destination_directory>
EOF;
class Write_Log_In_Temp {
protected $_path = './temp/split_unimarc_by_site.log';
public function __construct() {
file_put_contents($this->_path,
'');
}
public function log($message) {
file_put_contents($this->_path,
$message . "\n",
FILE_APPEND);
}
}
$log = new Write_Log_In_Temp;
$log = new Class_LogFile('./temp/split_unimarc_by_site.log');
(new Class_Cosmogramme_Integration_SplitBySite)
->setLogger($log)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment