I’m trying to create an error logger to catch all the messages my Panda3d session sends to one file (essentially, a good ol’ “remap stdout, stderr”). I tried this little nugget of code from a Python forum:
sys.stdout = open("out.txt","w") sys.stderr = sys.stdout
That seems to have worked correctly for all the “print” statements in my program. Unfortunately, it still doesn’t catch error messages coming from Panda3d’s components, such as:
:pnmimage:tiff(warning): TIFF file: unknown field with tag 37724 (0x935c) encountered :gobj(error): Texture::read() - couldn't read: textures/glyph_of_madness.jpg
Does anyone know what additional steps I need to take to capture these error messages as well?