Użytkownik Ed Leafe napisał: > On Dec 4, 2010, at 4:25 PM, Jacek Kałucki wrote: > > >>> Even simpler: just add: >>> >>> dbLogFile = "/path/to/my/db.log" >>> >>> >> Yes, it's simpler. But it's not such flexible because assume fixed >> log file path, which can vary across different machines. >> On Windows e.g. application shouldn't write any data >> in application directory. >> > OK, I was just making the point that you don't have to create your own > logger and handler. You could do: > > dbLogFile = getMyLogPath() > > ... and put your pathing logic into its own method. But you don't have to > create your own logger. > >
Ok. It can do that, but... I use settings_override.py to hold only framework specific configuration. Currently I keep entire applications settings in its initProperties() method. So, I can't simply refer to app.anything() from within settings module. To make it working, I would have to create a separate entity that holds configuration and provide it for both, framework and application. -- Regards Jacek Kałucki _______________________________________________ Post Messages to: Dabo-users@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/4cff905d.5050...@rz.onet.pl