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

Merge branch 'dev#176789_gers' into 'master'

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

See merge request !4773
parents dc651595 b2424485
Branches
Tags
1 merge request!4773dev#176789 : task#179397 : log to temp file
Pipeline #24206 passed with stage
in 22 minutes and 1 second
......@@ -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