Created
August 7, 2023 03:01
-
-
Save yehchge/1de2fc1f4102ca10d57bc9d8867fa015 to your computer and use it in GitHub Desktop.
php simple log
This file contains 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 | |
$sLogPath = dirname(__FILE__) ."/mylog.log"; | |
$rFile = fopen( $sLogPath, "a" ); | |
$sErrorMsg = "Error Message:".$msg." @at ".date("Y-m-d H:i:s")."\n"; | |
fwrite($rFile, $sErrorMsg); | |
fclose($rFile); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment