(user=None, action=Log.MODERATE, text='', target=None, ipaddr=None, post=None)
Creates a database log.
Creates a database log.
Creates a database log .
def db_logger(user=None, action=Log.MODERATE, text='', target=None, ipaddr=None, post=None):
    """
    Creates a database log.
    """
    Log.objects.create(user=user, action=action, text=text, target=target, ipaddr=ipaddr, post=post)
    logger.info(f"user={user.email} {text} ")
def db_logger ( user = None , action = Log . MODERATE , text = '' , target = None , ipaddr = None , post = None ) : Log . objects . create ( user = user , action = action , text = text , target = target , ipaddr = ipaddr , post = post ) logger . info ( f"user={user.email} {text} " )