[EXTENSION] ESysLogRoute

Route messages directly to syslog / Windows Event Log

More details can be found at:http://www.yiiframework.com/extension/syslogroute/

It should work on Windows too. From the PHP manual:

[quote="PHP Manual"]Notes

On Windows NT, the syslog service is emulated using the Event Log.

    Note: Use of LOG_LOCAL0 through LOG_LOCAL7 for the facility parameter of openlog() is not available in Windows.
[/quote]

:)

You're right, actually i built a version that seems to work in my XP box.

The problem is that i can't find the right priorities for Windows (and i assume that these priorities are subject to change between XP/2k,2k3, etc). LOG_* seems to only generate "error" priority messages on my box.

Anyway, i'll upload this version too, in case anyone finds or already knows the right way to go on this one.

Thanks Meta.

I haven't tried this out, but when it's working both on linux and windows, I'd say that a syslog route should definitely be shipped with the Yii core.

You’ve forgotten breaks in function processLogs(), that’s why priorities behave incorrectly sometime.

You’re absolutely right! Thanks for pointing this out. I’ve now corrected the code and uploaded the new version.

Thanks again!