# Path: moedjpack/moedj/settings.py
# LOGGING = {
#     'version': 1,
#     'disable_existing_loggers': False,
#     'formatters': {
#         'verbose': {
#             'format': '%(levelname)s %(asctime)s %(module)s %(message)s'
#         },
#         'simple': {
#             'format': '%(levelname)s %(message)s'
#         },
#     },
#     'filters': {
#         'require_debug_false': {
#             '()': 'django.utils.log.RequireDebugFalse'
#         }
#     },
#     'handlers': {
#         'mail_admins': {
#             'level': 'ERROR',
#             'filters': ['require_debug_false'],
#             'class': 'django.utils.log.AdminEmailHandler'
#         },
#         'filelog': {
#             'level': 'INFO',
#             'class': 'logging.handlers.RotatingFileHandler',
#             'filename': '/'.join([_dir, 'MoePad.log']),
#             'maxBytes': 1024*1024*5,
#             'backupCount': 5,
#             'formatter': 'verbose'
#         }
#     },
#     'loggers': {
#         'django.request': {
#             'handlers': ['mail_admins', 'filelog'],
#             'level': 'ERROR',
#             'propagate': True,
#         },
#         'moepad': {
#             'handlers': ['filelog'],
#             'level': 'INFO',
#             'propagate': True,
#         },
#     }
# }


import redis
import logging
import logging.handlers
import pytz
import os
import os.path as p
import logging.config
from datetime import datetime
from moedjpack.moedj.settings import LOGGING
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: Sai
# @Date:   2014-02-12 23:13:59
# @Email:  email@example.com
# @Last modified by:   Sai
# @Last modified time: 2014-03-02 16:54:32
# 🎵 ミライナイト

rs = redis.Redis("localhost", db=1)
logging.config.dictConfig(LOGGING)
logger = logging.getLogger('moepad')



# Path: moedjpack/moedj/settings.py
# LOGGING = {
#     'version': 1,
#     'disable_existing_loggers': False,
#     'formatters': {
#         'verbose': {
#             'format': '%(levelname)s %(asctime)s %(module)s %(message)s'
#         },
#         'simple': {
#             'format': '%(levelname)s %(message)s'
#         },
#     },
#     'filters': {
#         'require_debug_false': {
#             '()': 'django.utils.log.RequireDebugFalse'
#         }
#     },
#     'handlers': {
#         'mail_admins': {
#             'level': 'ERROR',
#             'filters': ['require_debug_false'],
#             'class': 'django.utils.log.AdminEmailHandler'
#         },
#         'filelog': {
#             'level': 'INFO',
#             'class': 'logging.handlers.RotatingFileHandler',
#             'filename': '/'.join([_dir, 'MoePad.log']),
#             'maxBytes': 1024*1024*5,
#             'backupCount': 5,
#             'formatter': 'verbose'
#         }
#     },
#     'loggers': {
#         'django.request': {
#             'handlers': ['mail_admins', 'filelog'],
#             'level': 'ERROR',
#             'propagate': True,
#         },
#         'moepad': {
#             'handlers': ['filelog'],
#             'level': 'INFO',
#             'propagate': True,
#         },
#     }
# }


# Path: moedjpack/moepad/mputils.py
import redis
import logging
import logging.handlers
import pytz
import os
import os.path as p
import logging.config
from datetime import datetime
from moedjpack.moedj.settings import LOGGING

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: Sai
# @Date:   2014-02-12 23:13:59
# @Email:  email@example.com
# @Last modified by:   Sai
# @Last modified time: 2014-03-02 16:54:32
# 🎵 ミライナイト

rs = redis.Redis("localhost", db=1)
logging.config.dictConfig(LOGGING)
logger = logging.getLogger('moepad')



def sub_dict(somedict, somekeys, default=None):