Log->setIdent not behaving as I thought it would...
| From: | Alex Hayes | Date: | Thu, 05 Jun 2003 02:29:40 +0000 |
| Subject: | Log->setIdent not behaving as I thought it would... | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-17030@lists.php.net to get a copy of this message | ||
There is a behavior in the package Log which is a bit strange to me....
Say for example we do the following.
$log = &Log::singleton('file', '/path/to/file', 'LOGID');
$log->log('This is a message');
$log->setIdent('ANOTHERLOGID');
$log->log('This is another log message');
...
This would output the following...
Jun 05 11:16:37 LOGID [info] This is a message
Jun 05 11:16:37 LOGID [info] This is another log message
However I would of thought that it would output.
Jun 05 11:16:37 LOGID [info] This is a message
Jun 05 11:16:37 ANOTHERLOGID [info] This is another log message
.....
Please correct me if im wrong!!.... But if i am.. then why is there even the
Log->setIdent() function....?