Michael Pliskin a écrit :
Hello list,
I've made a simple way to use Apache logging API from Neko, here is
a patch attached. I've only made the wrapper for ap_log_rerror
function (request-level logging) as I all neko programs are request
handlers, and they do not need server-level, connection-level or
pool-level logging.
I am also attaching a patch to neko.Web haXe class to expose this
function to haxe code, and then I have a problem how to expose
Apache severity constants. I have the following options:
1. declare them statically in Web.hx
2. retrieve their values from C
3. make a bunch of methods like log_error, log_warning etc
Nicolas, which of these do you prefer?
Is there really a need for a wide range for error levels ? The best if
is we need only one log (info level ?) or maybe we can simply use a bool
to log either infos or errors.
What do you think ?
BTW, when adding apis to mod_neko, it is necessary to patch neko web
server as well ;)
Best,
Nicolas
--
Neko : One VM to run them all
(http://nekovm.org)