浏览代码

提交内购日志设置

linhaohong 9 月之前
父节点
当前提交
e627d6d363
共有 2 个文件被更改,包括 18 次插入0 次删除
  1. 9 0
      Ansjer/eur_config/formal_settings.py
  2. 9 0
      Ansjer/us_config/formal_settings.py

+ 9 - 0
Ansjer/eur_config/formal_settings.py

@@ -266,6 +266,15 @@ LOGGING = {
             'formatter': 'standard',
             'encoding': 'utf-8',
         },
+        'apple_pay': {
+            'level': 'INFO',
+            'class': 'logging.handlers.RotatingFileHandler',
+            'filename': BASE_DIR + '/static/log/apple_pay/apple_pay.log',
+            'backupCount': 10,
+            'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G
+            'formatter': 'standard',
+            'encoding': 'utf-8',
+        },
         'token': {
             'level': 'INFO',
             'class': 'logging.handlers.TimedRotatingFileHandler',

+ 9 - 0
Ansjer/us_config/formal_settings.py

@@ -270,6 +270,15 @@ LOGGING = {
             'formatter': 'standard',
             'encoding': 'utf-8',
         },
+        'apple_pay': {
+            'level': 'INFO',
+            'class': 'logging.handlers.RotatingFileHandler',
+            'filename': BASE_DIR + '/static/log/apple_pay/apple_pay.log',
+            'backupCount': 10,
+            'maxBytes': 1024 * 1024 * 2 * 1024,  # 2G
+            'formatter': 'standard',
+            'encoding': 'utf-8',
+        },
         'token': {
             'level': 'INFO',
             'class': 'logging.handlers.TimedRotatingFileHandler',