badmfck-api-server 1.3.9 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,14 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.BaseService = void 0;
|
4
|
-
const LogService_1 = require("./LogService");
|
5
4
|
class BaseService {
|
6
5
|
name;
|
7
6
|
constructor(name) {
|
8
7
|
this.name = name;
|
9
8
|
}
|
10
9
|
async init() {
|
11
|
-
|
10
|
+
console.log("Service: " + this.name + " initialized");
|
12
11
|
}
|
13
12
|
applicationReady() { }
|
14
13
|
}
|
@@ -94,7 +94,7 @@ class LogService extends BaseService_1.BaseService {
|
|
94
94
|
date: this.createDate(d)
|
95
95
|
};
|
96
96
|
if (this.options.output)
|
97
|
-
this.options.output(logitem.level + " > " + logitem.
|
97
|
+
this.options.output(logitem.level + " > " + logitem.date + " > " + text);
|
98
98
|
exports.S_LOG_CREATED.invoke(logitem);
|
99
99
|
this.log.push(logitem);
|
100
100
|
let limit = this.options.stackSize ?? 1000;
|