[yt-users] Logging of output

Max Katz maxpkatz at gmail.com
Wed Jan 7 16:30:46 PST 2015


Hi all,

A glance at the source code (utilities/logger.py) indicates to me that yt
is using the Python logging package for output information, and that
depending on the choice of the option stdoutStreamLogging, this can be
directed to either stdout or stderr. Since there's a lot of information
piped to stdout whenever a dataset is opened, and this can tend to
overwhelm any other information that is being displayed to screen it would
be nice if the logging output could be redirected to a file. This can be
done when setting the basicConfig for the logger
<https://docs.python.org/2/howto/logging.html> when setting it up, but that
page indicates that this configuration cannot be overridden after it has
initially been set. Is there a way to include an option in yt for the user
to direct the logging output to a file of their choice?

Max Katz
Department of Physics and Astronomy
Vice President, Graduate Student Organization
Stony Brook University
http://astro.sunysb.edu/mkatz/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20150107/dd7209b9/attachment.htm>


More information about the yt-users mailing list