Perphaps you must add to "keys" item the module's name to be logged
For example:
# Logging configuration
[loggers]
keys = root, routes, barmania, sqlalchemy

Of course, "barmania" is my app.
Cheers

2010/11/10 [email protected] <[email protected]>

> I setup my pylons app to run with FastCGI on my shared host,
> Hostmonster. However, for the life of me, I cannot get logging to
> work. Any help is appreciated.
>
> The setup is fairly typical, following the instructions for FastCGI
> and Pylons available on the site.
>
> I wish my logging section of my ini could look like the following.
> Nothing appears anywhere, and I don't see any exceptions either. I'd
> like to go in and debug this, but I don't know where to begin.
>
> I added a test log message in my admin controller, but all I can find
> is this cryptic message in the shared errorlog for apache:
>
> No handlers could be found for logger "dealdigger.controllers.admin"
>
> Logging section of ini:
>
> # Logging configuration
> [loggers]
> keys = root
>
> [logger_root]
> level = INFO
> handlers = errorlog
>
> [logger_sqlalchemy]
> level = WARN
> handlers = errorlog
> qualname = sqlalchemy.engine
> # "level = INFO" logs SQL queries.
> # "level = DEBUG" logs SQL queries and results.
> # "level = WARN" logs neither.  (Recommended for production systems.)
>
> [handlers]
> keys = errorlog, console
>
> [handler_errorlog]
> #class = logging.handlers.TimedRotatingFileHandler
> #args = ('/home1/jonathh0/public_html/deal-digger.com/logs/error.log',
> 'D', 1)
> class = FileHandler
> args =  ('/home1/jonathh0/public_html/deal-digger.com/logs/error_log',
> 'a')
> level = NOTSET
> formatter = generic
>
> [handler_console]
> class = StreamHandler
> args = ('sys.stderr',)
> level = NOTSET
> formatter = generic
>
> [formatters]
> keys = generic
>
> [formatter_generic]
> format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %
> (message)s
> datefmt = %H:%M:%S
>
> --
> 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]<pylons-discuss%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/pylons-discuss?hl=en.
>
>

-- 
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