'Get task logs from the DB.  The message could have
directly targeted this cell, or it could have been a broadcast
message.
If \'host\' is not None, filter by host.
If \'state\' is not None, filter by state.'

def task_log_get_all(self, message, task_name, period_beginning, period_ending, host, state):

    task_logs = self.db.task_log_get_all(message.ctxt, task_name, period_beginning, period_ending, host=host, state=state)
    return jsonutils.to_primitive(task_logs)
