I'm trying to update my project's configuration file to new logging 
configuration and I get this error:

Traceback (most recent call last):
  File "D:\Projects\Spaca\start-spaca.py", line 21, in ?
    modulename="spaca.config.app")
  File "d:\projects\3rd-party\turbogears-1.0\turbogears\config.py", line 181, 
in update_config
    configure_loggers(configdict)
  File "d:\projects\3rd-party\turbogears-1.0\turbogears\config.py", line 132, 
in configure_loggers
    _get_loggers(loggers, handlers)
  File "d:\projects\3rd-party\turbogears-1.0\turbogears\config.py", line 84, in 
_get_loggers
    raise ConfigError("Logger %s references unknown "
turbogears.config.ConfigError: Logger access references unknown handler 
access_out

Somehow TG doesn't "see" my spaca/config/log.cfg file where access_out is 
defined.

Any idea what is wrong with my setup? I tried to quickstart a fresh project and 
it works fine there.

My start-spaca.py is a stock script:
#!/usr/bin/env python
import pkg_resources
pkg_resources.require("TurboGears")

import cherrypy
import turbogears
import sys
import os.path
import os
import logging

cherrypy.lowercase_api = True

# first look on the command line for a desired config file,
# if it's not on the command line, then
# look for setup.py in this directory. If it's not there, this script is
# probably installed
if len(sys.argv) > 1:
    turbogears.update_config(configfile=sys.argv[1], 
        modulename="spaca.config.app")
elif os.path.exists(os.path.join(os.path.dirname(__file__), "setup.py")):
    turbogears.update_config(configfile="dev.cfg",
        modulename="spaca.config.app")
else:
    turbogears.update_config(configfile="prod.cfg",
        modulename="spaca.config.app")


from spaca.controllers import Root

turbogears.start_server(Root())


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" 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/turbogears-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to