On Wed, May 27, 2009 at 3:51 AM, durumdara <[email protected]> wrote:
>
> Hi!
>
> I solved the problem with this config:
>
> [loggers]
> keys = root, routes, graffity
>
> [logger_root]
> handlers = console
> level = NOTSET
>
> [formatter_generic]
> datefmt = %H:%M:%S
> format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %
> (message)s
>
> [formatters]
> keys = generic
>
> [handlers]
> keys = console
>
> [handler_console]
> formatter = generic
> args = ('main.log','a')
> class = FileHandler
> level = NOTSET
>
> [logger_graffity]
> handlers =
> ;accesslog, debuglog, criticallog
> qualname = graffity
> level = NOTSET
>
> [logger_routes]
> handlers =
> qualname = routes.middleware
> level = NOTSET
>
> ...
>
>
> 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