Using "real" syslog on Windows?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jgarbers
Forum Newbie
Posts: 5
Joined: Wed Jan 05, 2005 9:55 am

Using "real" syslog on Windows?

Post by jgarbers »

I like to use Kiwi Syslog Daemon (http://www.kiwisyslog.com), a nice syslog that runs on Win32. However, PHP wants to use the NT Event Log instead. Is there a way to reconfigure PHP to use "real" syslog on Windows without recompiling it? Thanks for any help.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

[php_man]set_error_handler()[/php_man] - create your own error handler to send it to syslog.

Moved to PHP - Code.
jgarbers
Forum Newbie
Posts: 5
Joined: Wed Jan 05, 2005 9:55 am

Post by jgarbers »

wow - thanks for the quick reply, but I think my question wasn't clear. I'd like the syslog() function, which I'll use for my own event reporting, to use the real syslog() protocol rather than sending the output to the NT Event Log. Does that make sense, and can it be done? Thanks.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

oops, forgot about the function. From a quick look around, it would appear not settable without recompile.
Post Reply