Use the logging module in dspace.py.