hey everyone. I am installing my own TG1.5 project where I put almost all of the logging config in <project>/config/log.cfg and very little in dev.cfg but when I run tg-admin sql create, tg-admin complains about handlers and formatters not being defined, while they are defined in log.cfg but not in dev.cfg. So it seems tg-admin sql create doesn't take log.cfg into account. Is that right? Why is this? Can I fix this somehow? Maybe I can influence the log files that tg-admin looks at, so it takes both dev.cfg and project/config/log.cfg into account? Right now I seem to need to duplicate everything from log.cfg into dev.cfg just to run tg-admin sql create, which is a pain. Aside from that I am also having trouble with tg-admin with my own log handler. I created my own loghandler, which I include in commands.py with: """ from loghandlers import MyLogHandler logging.handlers.MyLogHandler=MyLogHandler """
In the config files i can then refer to handlers.MyLogHandler. But tg- admin fails on this situation, since the import statement that is in command.py isn't done by tg-admin. Is there a way I can also fix that? Cheers, Dolf. -- You received this message because you are subscribed to the Google Groups "TurboGears" 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?hl=en.

