Skip to content

Commit

Permalink
bump versions
Browse files Browse the repository at this point in the history
  • Loading branch information
vcmirko committed Apr 10, 2024
1 parent 1e526cb commit cead8b0
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 32 deletions.
4 changes: 2 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"core-js": "~3.34.0",
"core-js": "~3.36.1",
"vue": "~2.7.15",
"axios": "~1.6.6",
"axios": "~1.6.8",
"es6-promise": "~4.2.8",
"vuelidate": "~0.7.7",
"vue-router": "~3.5.4",
Expand Down
18 changes: 9 additions & 9 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,23 @@
"clean": "rimraf dist"
},
"dependencies": {
"core-js": "~3.35.1",
"axios": "~1.6.6",
"core-js": "~3.36.1",
"axios": "~1.6.8",
"cors": "~2.8.5",
"bcrypt": "~5.1.0",
"cheerio": "~1.0.0-rc.12",
"connect-history-api-fallback": "~2.0.0",
"express": "~4.18.2",
"express": "~4.19.2",
"multer": "~1.4.5-lts.1",
"express-session": "~1.17.3",
"winston": "~3.11.0",
"express-session": "~1.18.0",
"winston": "~3.13.0",
"winston-syslog": "~2.7.0",
"winston-daily-rotate-file": "~4.7.1",
"winston-daily-rotate-file": "~5.0.0",
"passport": "~0.7.0",
"modern-passport-http": "~0.3.0",
"passport-jwt": "~4.0.1",
"@outlinewiki/passport-azure-ad-oauth2": "~0.1.0",
"mysql2": "~3.8.0",
"mysql2": "~3.9.4",
"ajv": "~6.12.6",
"ajv-error-parser": "~1.0.7",
"lodash": "~4.17.21",
Expand All @@ -44,9 +44,9 @@
"cert-info":"~1.5.1",
"thenby":"~1.3.4",
"mssql":"~10.0.2",
"mongodb":"~6.3.0",
"mongodb":"~6.5.0",
"pg":"~8.11.3",
"ip":"1.1.8",
"ip":"2.0.1",
"dayjs": "1.11.10",
"fs-extra":"~11.2.0",
"node-cache":"~5.1.2",
Expand Down
57 changes: 36 additions & 21 deletions server/src/lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,30 +23,45 @@ const formatNoColor = winston.format.combine(
),
)

const transportConsole = new winston.transports.Console({
stderrLevels: ["error"],
level:loggerConfig.consolelevel,
format:formatColor
});

const transportDailyRotateFileErrors = new winston.transports.DailyRotateFile({
filename: loggerConfig.path + "/ansibleforms.errors.%DATE%.log",
datePattern: 'YYYY-MM-DD',
maxFiles: '30d',
zippedArchive: true,
level: 'error',
format:formatNoColor
});

const transportDailyRotateFile = new winston.transports.DailyRotateFile({
level: loggerConfig.level,
filename: loggerConfig.path + "/ansibleforms.%DATE%.log",
datePattern: 'YYYY-MM-DD',
zippedArchive: true,
maxFiles: '30d',
format:formatColor
});

var transports = [
new winston.transports.Console({
stderrLevels: ["error"],
level:loggerConfig.consolelevel,
format:formatColor
}),
new winston.transports.DailyRotateFile({
filename: loggerConfig.path + "/ansibleforms.errors.%DATE%.log",
datePattern: 'YYYY-MM-DD',
maxFiles: '30d',
zippedArchive: true,
level: 'error',
format:formatNoColor
}),
new winston.transports.DailyRotateFile({
level: loggerConfig.level,
filename: loggerConfig.path + "/ansibleforms.%DATE%.log",
datePattern: 'YYYY-MM-DD',
zippedArchive: true,
maxFiles: '30d',
format:formatColor
}),
transportConsole,
transportDailyRotateFileErrors,
transportDailyRotateFile,
]

transportDailyRotateFile.on('error', error => {
console.error('Error in transportDailyRotateFile:', error);
});

transportDailyRotateFileErrors.on('error', error => {
console.error('Error in transportDailyRotateFileErrors:', error);
});


if(loggerConfig.sysloghost){
transports.push(
new winston.transports.Syslog({
Expand Down

0 comments on commit cead8b0

Please sign in to comment.