Dear Mike!

Can I get some callback that starts at/before every requests where I
can log everything what I need?
I know that Pylons (or Django?) have __before__ and __after__ method
calls, but I need some other, special callback method (just like mako
filter) where I can do my logs without interfering with the system.

Thanks!

dd

> > But:
> > 1.)
> > I don't see any Server (restarting times, etc.) info in the log. I
> > want to set it to see because I need to use Pylons as Windows Service.
>
> The startup greeting is printed by paste.script.serve, so it doesn't
> get into the log.  You can log the start time yourself in
> environment.py or middleware.py if you wish.
>
> > 2.)
> > I don't see any information about the client, like IP or HostName, or
> > about the request, and the other params - like in Apache "access.log".
> > Ok, if I use apache proxy, I can see them all, but if I want to use
> > Pylons it without apache, I miss them.
>
> paste.translogger has a middleware that logs requests Apache style.
>
> --
> Mike Orr <[email protected]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to