Created
January 31, 2017 15:59
-
-
Save madeindjs/50a8debd34e5f030396932b56c202ae8 to your computer and use it in GitHub Desktop.
a short logger to quickly include in your file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class LeLogDuRoumain{ | |
private $f; | |
function __construct($f='~/Desktop/le_log_du_roumain.txt'){$this->f=$f;} | |
function log($data){file_put_contents($this->f,date('h:i:s').' '.$data.PHP_EOL,FILE_APPEND);} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment