mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-25 03:00:54 +03:00
26 lines
726 B
TypeScript
26 lines
726 B
TypeScript
// BEWARE: This file is an intereem solution until we have a proper config strategy
|
|
|
|
import path from 'path'
|
|
import dotenv from 'dotenv'
|
|
|
|
dotenv.config({ path: path.join(__dirname, '..', '..', '.env'), override: true })
|
|
|
|
// default config
|
|
const loggingConfig = {
|
|
dir: process.env.LOG_PATH ?? path.join(__dirname, '..', '..', 'logs'),
|
|
server: {
|
|
level: process.env.LOG_LEVEL ?? 'info',
|
|
filename: 'server.log',
|
|
errorFilename: 'server-error.log'
|
|
},
|
|
express: {
|
|
level: process.env.LOG_LEVEL ?? 'info',
|
|
format: 'jsonl', // can't be changed currently
|
|
filename: 'server-requests.log.jsonl' // should end with .jsonl
|
|
}
|
|
}
|
|
|
|
export default {
|
|
logging: loggingConfig
|
|
}
|