mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 15:58:38 +01:00
17 lines
387 B
JavaScript
17 lines
387 B
JavaScript
|
|
const path = require('path');
|
|
const fs = require('fs');
|
|
|
|
const dashboardPath = path.join(__dirname, '../../dashboard');
|
|
|
|
const logNames = [
|
|
"winston-debug.ndjson",
|
|
"winston-exceptions.ndjson",
|
|
"winston-logs.ndjson",
|
|
"winston-rejections.ndjson",
|
|
]
|
|
|
|
for (const logName of logNames) {
|
|
const logFullPath = path.join(dashboardPath, logName);
|
|
fs.rmSync(logFullPath);
|
|
} |