|
From: Andy T. <an...@ha...> - 2001-12-14 02:27:13
|
Kevin Altis wrote:
> I moved readAndEvalFile() to util.py. Future generic functions and methods
> can go in that module.
>
> I went ahead and changed log and config modules to use "global" module
> functions for
> the Log() and Configuration() classes. Now to use the logging functionality
> you just import log and then use one of the function below like
>
> log.info('hello log world')
>
[snip definition of changes]
>
> I also changed the path returned by getLogFileName to always use the
> application directory (sys.argv[0]) to avoid log files being created in many
> different directories while the app is running.
Err, could we make that a default which can be overrided? I would
suggest that if the specified log file name is a simple file name
'xxx.yyy' you prepend the application directory, otherwise use whatever
is supplied (be it an absolute or relative path). I try and avoid
writing log files to my application directories.
>
> The cvs checkin is below so you can see which files were impacted. If any of
> these changes seem inherently wrong, we can always go back to the old method
> or try something else, but I like how this works.
>
> ka
> ---
>
[snip cvs check in messages]
>
Regards,
Andy
--
-----------------------------------------------------------------------
From the desk of Andrew J Todd esq.
"Another year older, still no wiser." - Me, on my birthday
|