fix(api): logging configs

This commit is contained in:
Mrugesh Mohapatra
2025-01-02 18:53:59 +05:30
parent 7bed7722b9
commit c2e1032e08
3 changed files with 11 additions and 3 deletions

View File

@@ -20,9 +20,11 @@ const envToLogger = {
ignore: 'pid,hostname'
}
},
level: FCC_API_LOG_LEVEL
level: FCC_API_LOG_LEVEL || 'info'
},
production: {
level: FCC_API_LOG_LEVEL || 'info'
},
production: { level: FCC_API_LOG_LEVEL },
test: undefined
};

View File

@@ -6,3 +6,9 @@ services:
- ../../.env
ports:
- '3000:3000'
logging:
driver: 'local'
options:
max-size: '10m'
max-file: '3'
compress: 'true'

View File

@@ -71,7 +71,7 @@ FCC_ENABLE_DEV_LOGIN_MODE=true
FCC_ENABLE_SHADOW_CAPTURE=false
FCC_ENABLE_EXAM_ENVIRONMENT=false
FCC_ENABLE_SENTRY_ROUTES=false
FCC_API_LOG_LEVEL=debug
FCC_API_LOG_LEVEL=info
# Email
# use ses in production