Is there any functional difference between
file_put_contents( '/Users/jake/Development/testing.log', ob_get_clean(), FILE_APPEND );
and
file_put_contents( '/Users/jake/Development/testing.txt', ob_get_clean(), FILE_APPEND );
?
I can open both files in sublime text 2, and I'm not sure what the difference between the extensions is.
Log files are a historical record of everything and anything that happens within a system, including events such as transactions, errors and intrusions.
Data files contain data and objects such as tables, indexes, stored procedures, and views. Log files contain the information that is required to recover all transactions in the database.
LOG is the file extension for an automatically produced file that contains a record of events from certain software and operating systems. While they can contain a number of things, log files are often used to show all events associated with the system or application that created them.
No there is no difference. You can use either. For convention and to show the purpose log files use .log extension.
and yes you can usually open them with any text editor.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With