debug_log question
Posted: Thu Jun 03, 2010 5:46 pm
Hi
To know how the application runs in my application, I add some messages using error_log such as
And I have this in the application config (Apache virtual host application):
[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
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