Re: [mongrel2] zmq logging port
- From:
- James Dennis
- Date:
- 2011-07-21 @ 21:50
Thanks, this helps.
I have it in mind to start experimenting with zmq logging from Brubeck. I'd
like to create a pythonic drop-in replacement for regular logging. Ideally,
this wouldn't be dependent on Brubeck at all, but I want it to be consistent
with however Mongrel2 works.
If anyone has opinions on this, I'd appreciate hearing them.
On Thu, Jul 21, 2011 at 5:15 PM, Isaac Force <isaac@autognosis.org> wrote:
> On Thu, Jul 21, 2011 at 1:29 PM, James Dennis <jdennis@gmail.com> wrote:
> > I am trying documentation supporting the zmq logging port and I can't
> find
> > anything. Searching google for any combination of zmq, zed shaw,
> mongrel2,
> > logging isn't getting me there yet either.
> > Could someone point me in the right direction?
>
> If you're referring to the access log, I believe it's currently set
> statically to in-process communication only:
>
> https://github.com/zedshaw/mongrel2/blob/master/src/mongrel2.c#L246
>
> I think Zed mentioned around the time that he was changing logging to
> use tnetstrings that the ZMQ spec could be configurable down the road,
> but don't quote me on that. (It would be cool if it was, though; it
> would make it easy to write a custom logger.)
>
> -Isaac
>