opticore-catch-exception-error 1.0.25 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -179,11 +179,11 @@ var ServerListenEventError = class {
|
|
|
179
179
|
logger = new import_opticore_logger2.LoggerCore();
|
|
180
180
|
stackTrace;
|
|
181
181
|
localeLanguage;
|
|
182
|
-
|
|
182
|
+
OpticoreLogger;
|
|
183
183
|
constructor(defaultLocalLang) {
|
|
184
184
|
translateCatchExceptionErrorLanguageLoader();
|
|
185
185
|
this.localeLanguage = defaultLocalLang;
|
|
186
|
-
this.
|
|
186
|
+
this.OpticoreLogger = new import_opticore_server_logger.OpticoreLogger();
|
|
187
187
|
}
|
|
188
188
|
/**
|
|
189
189
|
* @param appPort
|
|
@@ -636,14 +636,14 @@ var ServerListenEventError = class {
|
|
|
636
636
|
*
|
|
637
637
|
*/
|
|
638
638
|
serverClosing() {
|
|
639
|
-
this.
|
|
639
|
+
this.OpticoreLogger.opticoreLog({
|
|
640
640
|
timestamp: dateTimeFormatted,
|
|
641
641
|
level: "OPTICORE",
|
|
642
642
|
title: "Stop",
|
|
643
643
|
typeName: "Process stopped",
|
|
644
644
|
message: import_opticore_translator2.TranslationLoader.t("allProcessStopped", this.localeLanguage)
|
|
645
645
|
});
|
|
646
|
-
this.
|
|
646
|
+
this.OpticoreLogger.serverLog({
|
|
647
647
|
timestamp: dateTimeFormatted,
|
|
648
648
|
level: "SERVER",
|
|
649
649
|
title: "Ending",
|
|
@@ -656,7 +656,7 @@ var ServerListenEventError = class {
|
|
|
656
656
|
*
|
|
657
657
|
*/
|
|
658
658
|
dropNewConnection() {
|
|
659
|
-
this.
|
|
659
|
+
this.OpticoreLogger.serverLog({
|
|
660
660
|
timestamp: dateTimeFormatted,
|
|
661
661
|
level: "SERVER",
|
|
662
662
|
title: "Dropped connection",
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -74,7 +74,7 @@ import chalk from "chalk";
|
|
|
74
74
|
import { LoggerCore as LoggerCore2 } from "opticore-logger";
|
|
75
75
|
import { HttpStatusCode as status } from "opticore-http-response";
|
|
76
76
|
import { TranslationLoader as TranslationLoader2 } from "opticore-translator";
|
|
77
|
-
import {
|
|
77
|
+
import { OpticoreLogger } from "opticore-server-logger";
|
|
78
78
|
|
|
79
79
|
// src/core/errors/base/stackTraceError.ts
|
|
80
80
|
var StackTraceError = class extends Error {
|
|
@@ -129,11 +129,11 @@ var ServerListenEventError = class {
|
|
|
129
129
|
logger = new LoggerCore2();
|
|
130
130
|
stackTrace;
|
|
131
131
|
localeLanguage;
|
|
132
|
-
|
|
132
|
+
OpticoreLogger;
|
|
133
133
|
constructor(defaultLocalLang) {
|
|
134
134
|
translateCatchExceptionErrorLanguageLoader();
|
|
135
135
|
this.localeLanguage = defaultLocalLang;
|
|
136
|
-
this.
|
|
136
|
+
this.OpticoreLogger = new OpticoreLogger();
|
|
137
137
|
}
|
|
138
138
|
/**
|
|
139
139
|
* @param appPort
|
|
@@ -586,14 +586,14 @@ var ServerListenEventError = class {
|
|
|
586
586
|
*
|
|
587
587
|
*/
|
|
588
588
|
serverClosing() {
|
|
589
|
-
this.
|
|
589
|
+
this.OpticoreLogger.opticoreLog({
|
|
590
590
|
timestamp: dateTimeFormatted,
|
|
591
591
|
level: "OPTICORE",
|
|
592
592
|
title: "Stop",
|
|
593
593
|
typeName: "Process stopped",
|
|
594
594
|
message: TranslationLoader2.t("allProcessStopped", this.localeLanguage)
|
|
595
595
|
});
|
|
596
|
-
this.
|
|
596
|
+
this.OpticoreLogger.serverLog({
|
|
597
597
|
timestamp: dateTimeFormatted,
|
|
598
598
|
level: "SERVER",
|
|
599
599
|
title: "Ending",
|
|
@@ -606,7 +606,7 @@ var ServerListenEventError = class {
|
|
|
606
606
|
*
|
|
607
607
|
*/
|
|
608
608
|
dropNewConnection() {
|
|
609
|
-
this.
|
|
609
|
+
this.OpticoreLogger.serverLog({
|
|
610
610
|
timestamp: dateTimeFormatted,
|
|
611
611
|
level: "SERVER",
|
|
612
612
|
title: "Dropped connection",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opticore-catch-exception-error",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.26",
|
|
4
4
|
"description": "opticore catch exception error",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"chalk": "^5.4.1",
|
|
29
29
|
"opticore-express": "^1.0.3",
|
|
30
|
-
"opticore-http-response": "^1.0.
|
|
31
|
-
"opticore-logger": "^1.0.
|
|
32
|
-
"opticore-server-logger": "^1.0.
|
|
30
|
+
"opticore-http-response": "^1.0.5",
|
|
31
|
+
"opticore-logger": "^1.0.19",
|
|
32
|
+
"opticore-server-logger": "^1.0.5",
|
|
33
33
|
"opticore-translator": "^1.0.10"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|