And just to refresh. I'm in linux atm so I'm booting maya from a linux shell. Now when I use the print sys.__stderr__, "output" It does't print to the shell no matter where I put it inside of the command. Also, I can get a .crash report, only the report doesn't give the kind of info I need and neither does the output to the shell. I'll continue working on that logging module.
On Feb 19, 1:48 pm, Brandon Harris <[email protected]> wrote: > would this logging module be a python module? > > On Feb 19, 12:02 pm, Paul Molodowitch <[email protected]> wrote: > > > Well, if you're in windows, then I don't think you can print out to > > the shell (instead, I believe it goes to a separate 'output' window, > > which will also disappear when maya crashes). If you're in another os, > > you can print to sys.__stdout__, like so: > > > print >> sys.__stdout__, 'foo' > > > ... which should go to the shell. > > > Otherwise, I suggest you checkout the logging module, which is a very > > handy logging system. For your purposes, you'll want to set up a > > FileHandler, and attach your logger to that. > > > - Paul > > > On Fri, Feb 19, 2010 at 9:54 AM, Brandon Harris <[email protected]> > > wrote: > > > I'm currently having issues with a command insta crashing maya and > > > leaving no trace of what exactly happened to cause the crash. Is there > > > a way of outputting print statements to the shell that maya is running > > > in? Or a way of saving out a more elaborate error log? > > > > -- > > >http://groups.google.com/group/python_inside_maya > > -- http://groups.google.com/group/python_inside_maya
