Unify logs

This commit is contained in:
Adria Navarro 2023-07-05 13:15:09 +02:00
parent ef0888fcad
commit 2411b59709
1 changed files with 1 additions and 7 deletions

View File

@ -11,7 +11,6 @@ import * as correlation from "../correlation"
import { LOG_CONTEXT } from "../index"
import { budibaseTempDir } from "../../objectStore"
import environment from "../../environment"
import pinoPretty from "pino-pretty"
// LOGGER
@ -72,14 +71,9 @@ if (!env.DISABLE_PINO_LOGGER) {
}
function localFileDestination() {
const fileName = path.join(
budibaseTempDir(),
"logs",
`${environment.SERVICE_NAME}.logs`
)
const fileName = path.join(budibaseTempDir(), "logs", `budibase.logs`)
const outFile = rfs.createStream(fileName, {
size: "10M",
teeToStdout: true,
})