add logging to file (#24)

This commit is contained in:
Dmitry Afanasyev
2023-10-03 19:47:41 +03:00
committed by GitHub
parent e465d71320
commit 47c7524cf8
8 changed files with 106 additions and 90 deletions

View File

@@ -1,35 +1,43 @@
STAGE="dev"
# ==== start app settings ====
APP_HOST="0.0.0.0"
APP_PORT="8000"
# SENTRY_DSN=
SENTRY_TRACES_SAMPLE_RATE="0.95"
# GRAYLOG_HOST=
USER="web"
TZ="Europe/Moscow"
TELEGRAM_API_TOKEN="123456789:AABBCCDDEEFFaabbccddeeff-1234567890"
# webhook settings
DOMAIN="https://mydomain.com"
URL_PREFIX="/gpt"
GPT_BASE_HOST="http://chat_service:8858"
# set to true to start with webhook. Else bot will start on polling method
START_WITH_WEBHOOK="false"
# quantity of workers for uvicorn
WORKERS_COUNT=1
# Enable uvicorn reloading
RELOAD="true"
DEBUG="true"
# ==== sentry ====
SENTRY_DSN=
SENTRY_TRACES_SAMPLE_RATE="0.95"
DEPLOY_ENVIRONMENT="stage"
# ==== logs ====:
ENABLE_JSON_LOGS="true"
ENABLE_SENTRY_LOGS="false"
GRAYLOG_HOST=
GRAYLOG_PORT=
LOG_TO_FILE="example.log"
# ==== telegram settings ====
TELEGRAM_API_TOKEN="123456789:AABBCCDDEEFFaabbccddeeff-1234567890"
# set to true to start with webhook. Else bot will start on polling method
START_WITH_WEBHOOK="false"
# ==== domain settings ====
DOMAIN="https://mydomain.com"
URL_PREFIX="/gpt"
# ==== gpt settings ====
GPT_BASE_HOST="http://chat_service:8858"
GPT_MODEL="gpt-3.5-turbo-stream-DeepAi"
# ==== other settings ====
USER="web"
TZ="Europe/Moscow"
# "gpt-3.5-turbo-stream-openai"
# "gpt-3.5-turbo-Aichat"
# "gpt-4-ChatgptAi"