I am currently running a websocket
daemon in CodeIgniter 2. The daemon is started using nohup
and runs in an eternal loop. The error output is formatted as HTML. However, I'd like to have the errors logged without HTML formatting. Does CodeIgniter have an option to make this possible?
EDIT:
I am not only tracking errors. I am also saving a websocket
log. The log contains functions that have been run and other useful information. I don't want to hide errors from the log though since they may be useful for tracking some errors. I want to log my custom websocket
messages along with errors that may occur.
Daemon start command:
nohup php /usr/share/nginx/html/index.php websocket server > /var/log/websocket/$(date +"%Y%m%d_%H%M%S") 2>&1 &
The errors in the log look like this:
<div style="border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;">
<h4>A PHP Error was encountered</h4>
<p>Severity: Notice</p>
<p>Message: Undefined index: REMOTE_ADDR</p>
<p>Filename: core/Input.php</p>
<p>Line Number: 351</p>