base_location = r'/var/www/rescue_company/logs/'

LOGGING = {
    'version': 1,
    'disable_existing_loggers': False,
    'formatters': {
        'standard': {
            'format': '%(asctime)s [%(levelname)s] %(name)s: %(message)s',
            'datefmt': '%d-%m-%Y %H:%M:%S'
        },
    },
    'handlers': {
        'console': {
            'level': 'INFO',
            'class': 'logging.StreamHandler',
        },
        'file': {
            'level': 'DEBUG',
            'class': 'logging.FileHandler',
            'filename': base_location+'debug.log',
            'formatter': 'standard',
        },
        'accounts_handler': {
            'level': 'DEBUG',
            'class': 'logging.FileHandler',
            'filename': base_location+'accounts_debug.log',
            'formatter': 'standard',
        },
        'qr_handler': {
            'level': 'DEBUG',
            'class': 'logging.FileHandler',
            'filename': base_location+'qr_debug.log',
            'formatter': 'standard',
        },
    },
    'loggers': {
        'django': {
            'handlers': ['console', 'file'],
            'level': 'INFO',
            'propagate': True,
        },
        'account_logger': {
            'handlers': ['console', 'accounts_handler'],
            'level': 'DEBUG',
            'propagate': True,
        },
        'qr_logger': {
            'handlers': ['console', 'accounts_handler'],
            'level': 'DEBUG',
            'propagate': True,
        },
    },
}
