def debug(message, source='debug'):
    """
	Get function or class for console print.

	Parameters
	----------
	message : :class:`str`
		Log message.
	source : :class:`str`
		Origin of call. Either debug or timestamp.

	"""
    import inspect
    if source == 'debug':
        caller = inspect.getframeinfo(inspect.stack()[1][0])
        event = '%s, line %d, in processing.%s(), %s' % (caller.filename,
            caller.lineno, caller.function, message)
        print(event)
    elif source == 'timestamp':
        caller = inspect.getframeinfo(inspect.stack()[1][0])
        event = 'processing.%s()' % caller.function
    return event
