You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
506 B

from django.core.management.base import BaseCommand
from finance.loggers import FinanceLogger
class Command(BaseCommand):
help = 'Команда для тестов'
def handle(self, *args, **options):
logger = FinanceLogger()
try:
10 / 0
except Exception as exc:
logger.exception('logger_yandex test log record', extra={'asdf': 3246523},
invoice_id=42, exc={'a': 1, 'b': 3, 'привет': 'медвед'}
)