It seems this isn’t supported by pandas setup tools at the moment. Though you can rather easily redirect pandas output to a log file. Here’s a sample that should match your desired style and location. Just put that somewhere before you initialize the engine.
from direct.showbase.ShowBase import ShowBase
from panda3d.core import MultiplexStream, Notify, Filename
import sys, os, string
from datetime import datetime
# create log path
logPath = os.path.join(
"$USER_APPDATA",
str(datetime.now().year),
str(datetime.now().month))
# part taken from the setup tools code
t = string.Template(logPath)
if sys.platform.startswith('win'):
logPath = t.substitute(HOME='~', USER_APPDATA='~/AppData/Local')
elif sys.platform.startswith('macosx'):
logPath = t.substitute(HOME='~', USER_APPDATA='~/Documents')
else:
logPath = t.substitute(HOME='~', USER_APPDATA='~/.local/share')
# make sure ~ and other special path elements are converted to a full path
logPath = os.path.expanduser(logPath)
# create logfile full name
logfile = os.path.join(
logPath,
datetime.now().strftime("%d-%H-%M.log"))
# chec if the path exists
if not os.path.exists(logPath):
os.makedirs(logPath)
# Redirect pandas logging (notify) to our own stream
nout = MultiplexStream()
Notify.ptr().setOstreamPtr(nout, 0)
# make sure our log file doesn't exist yet
if os.path.exists(logfile):
os.remove(logfile)
# set our otuput stream to write to our log file
nout.addFile(Filename(logfile))
# Run your app
app = ShowBase()
app.run()