To know how the application runs in my application, I add some messages using error_log such as
Code: Select all
error_log ("Start the script)";
....
error_log ("End the script)";
[syntax]
<VirtualHost _default_:*>
..
ErrorLog /home/mycomputer/myapp/logs/apache-error.log
..
[/syntax]
By this way, I can see the application runs when view the file apache-error.log
However, in production server, I do not want to see these messages; I only want to see them in staging and development servers. Could you please tell me how to fix this
Many thanks
john