FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=18071&edit=1

ID: 18071
Updated by: kvz@php.net
Reported By: yousan at l2tp dot org
Summary: Show line/file position when using pear log instance
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: System_Daemon
Operating System: FreeBSD 8.1-R
Package Version: 0.10.3
PHP Version: 5.3.3
-Assigned To:
+Assigned To: kvz
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: kvz
This bug has been fixed in SVN.

If this was a documentation problem, the fix will appear on pear.php.net
by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should
be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.

Fixed:
https://github.com/kvz/system_daemon/commit/933e6aacd48ffbcc394b25476ed2085
e99df4682


Previous Comments:
------------------------------------------------------------------------

[2010-11-18 11:45:35] yousan

Added #patch
bug:18071;patch:putout-line-file-positon-withpearlog;revision:1290080735;.

------------------------------------------------------------------------

[2010-11-18 11:45:06] yousan

Description:
------------
Hello.

I use PEAR::Log instance to log out through syslog.
And also I use logLinePosition and logFilePosition options to check out
errors.
Now the daemon does not put the line/file information to PEAR::Log
instance.
I want to put them out.

Test script:
---------------
require_once('System/Daemon.php');
require_once('Log.php');
$log = Log::singleton('syslog', 'LOG_USER', 'test');
System_Daemon::setOption("appName", 'test');
System_Daemon::setOption('logFilePosition', true);
System_Daemon::setOption('logLinePosition', true);
System_Daemon::setOption('usePEARLogInstance', $log);
System_Daemon::start();
usleep('hogehoge');
System_Daemon::stop();


Expected result:
----------------
Nov 18 19:38:10 tyler test[16649]: [PHP Error] usleep() expects
parameter 1 to be long, string given [f:/syst
em.php] [l:11]


Actual result:
--------------
Nov 18 19:38:10 tyler test[16649]: [PHP Error] usleep() expects
parameter 1 to be long, string given

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 5, '10 at 2:14p
activeDec 5, '10 at 2:14p
posts1
users1
websitepear.php.net

1 user in discussion

Kvz: 1 post

People

Translate

site design / logo © 2022 Grokbase