Suppose I want to display the sql error in log file which has been created by me. For example ,error log file called “myerror.log “
Now i am using the following code to print my message in log file , ” error_log(mysql_error(), 3, “tmp/myerror.log”); “.
So Every time when message is printed in myerror.log file with same line, Here i want to print the message one after another.
Kindly help me
Thanks
Dinesh Kumar Manoharan
As I understand you want to have each entry/message on new line. If so:
If you want to have timestamp as well, you will have to add it yourself:
If you need to constantly use such formatting I recommend to create your own function (something like this):