@spinajs/log 1.2.85 → 1.2.88
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.
|
@@ -3,6 +3,11 @@ import { IFileTargetOptions, ILogEntry, LogTarget } from "@spinajs/log-common";
|
|
|
3
3
|
import * as fs from "fs";
|
|
4
4
|
import { Job } from "node-schedule";
|
|
5
5
|
import { Readable } from "stream";
|
|
6
|
+
declare class FileLogStream extends Readable {
|
|
7
|
+
protected LogQueue: string[];
|
|
8
|
+
enqueue(entry: string): void;
|
|
9
|
+
_read(): void;
|
|
10
|
+
}
|
|
6
11
|
export declare class FileTarget extends LogTarget<IFileTargetOptions> {
|
|
7
12
|
LogDirPath: string;
|
|
8
13
|
LogFileName: string;
|
|
@@ -14,7 +19,7 @@ export declare class FileTarget extends LogTarget<IFileTargetOptions> {
|
|
|
14
19
|
protected CurrentFileSize: number;
|
|
15
20
|
protected IsArchiving: boolean;
|
|
16
21
|
protected WriteStream: fs.WriteStream;
|
|
17
|
-
protected
|
|
22
|
+
protected LogStream: FileLogStream;
|
|
18
23
|
resolve(): Promise<void>;
|
|
19
24
|
write(data: ILogEntry): Promise<void>;
|
|
20
25
|
protected archive(): void;
|
|
@@ -23,3 +28,4 @@ export declare class FileTarget extends LogTarget<IFileTargetOptions> {
|
|
|
23
28
|
private close;
|
|
24
29
|
private open;
|
|
25
30
|
}
|
|
31
|
+
export {};
|
|
@@ -42,6 +42,25 @@ const glob = __importStar(require("glob"));
|
|
|
42
42
|
const zlib = __importStar(require("zlib"));
|
|
43
43
|
const configuration_1 = require("@spinajs/configuration");
|
|
44
44
|
const stream_1 = require("stream");
|
|
45
|
+
class FileLogStream extends stream_1.Readable {
|
|
46
|
+
constructor() {
|
|
47
|
+
super(...arguments);
|
|
48
|
+
this.LogQueue = [];
|
|
49
|
+
}
|
|
50
|
+
enqueue(entry) {
|
|
51
|
+
this.LogQueue.push(entry);
|
|
52
|
+
}
|
|
53
|
+
_read() {
|
|
54
|
+
let ok = true;
|
|
55
|
+
let val = null;
|
|
56
|
+
do {
|
|
57
|
+
val = this.LogQueue.shift();
|
|
58
|
+
if (val) {
|
|
59
|
+
ok = this.push(val);
|
|
60
|
+
}
|
|
61
|
+
} while (ok && val);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
45
64
|
let FileTarget = class FileTarget extends log_common_1.LogTarget {
|
|
46
65
|
constructor() {
|
|
47
66
|
super(...arguments);
|
|
@@ -53,11 +72,7 @@ let FileTarget = class FileTarget extends log_common_1.LogTarget {
|
|
|
53
72
|
maxSize: 1024 * 1024,
|
|
54
73
|
maxArchiveFiles: 5,
|
|
55
74
|
}, this.Options.options);
|
|
56
|
-
|
|
57
|
-
this.ReadStream = new stream_1.Readable({ encoding: "utf-8", read: () => { } });
|
|
58
|
-
this.ReadStream.on("data", (chunk) => {
|
|
59
|
-
this.CurrentFileSize += chunk.length;
|
|
60
|
-
});
|
|
75
|
+
this.LogStream = new FileLogStream();
|
|
61
76
|
this.initialize();
|
|
62
77
|
this.rotate();
|
|
63
78
|
super.resolve();
|
|
@@ -66,11 +81,9 @@ let FileTarget = class FileTarget extends log_common_1.LogTarget {
|
|
|
66
81
|
if (!this.Options.enabled) {
|
|
67
82
|
return;
|
|
68
83
|
}
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
if (this.CurrentFileSize >= this.Options.options.maxSize && !this.IsArchiving) {
|
|
84
|
+
const lEntry = (0, configuration_1.format)(data.Variables, this.Options.layout) + os_1.EOL;
|
|
85
|
+
this.LogStream.enqueue(lEntry);
|
|
86
|
+
if (this.CurrentFileSize + this.WriteStream.bytesWritten >= this.Options.options.maxSize && !this.IsArchiving) {
|
|
74
87
|
this.archive();
|
|
75
88
|
}
|
|
76
89
|
}
|
|
@@ -87,59 +100,36 @@ let FileTarget = class FileTarget extends log_common_1.LogTarget {
|
|
|
87
100
|
.sort((x) => x.stat.mtime.getTime());
|
|
88
101
|
const newestFile = files.length !== 0 ? files[files.length - 1].name : undefined;
|
|
89
102
|
const fIndex = newestFile ? parseInt(newestFile.substring(newestFile.lastIndexOf("_") + 1, newestFile.lastIndexOf("_") + 2), 10) + 1 : 1;
|
|
90
|
-
const renPath = this.LogPath + ".bck";
|
|
91
103
|
const archPath = path.join(this.ArchiveDirPath, `archived_${this.LogBaseName}_${fIndex}${this.LogFileExt}`);
|
|
92
104
|
if (!fs.existsSync(this.LogPath)) {
|
|
93
105
|
return;
|
|
94
106
|
}
|
|
95
107
|
this.WriteStream.once("close", () => {
|
|
96
|
-
fs.rename(this.LogPath,
|
|
108
|
+
fs.rename(this.LogPath, archPath, (err) => {
|
|
109
|
+
this.initialize();
|
|
97
110
|
if (!err) {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
if (this.Options.options.compress) {
|
|
109
|
-
const zippedPath = path.join(this.ArchiveDirPath, `archived_${this.LogBaseName}_${fIndex}${this.LogFileExt}.gzip`);
|
|
110
|
-
const zip = zlib.createGzip();
|
|
111
|
-
const read = fs.createReadStream(archPath);
|
|
112
|
-
const write = fs.createWriteStream(zippedPath);
|
|
113
|
-
(0, stream_1.pipeline)(read, zip, write, (err) => {
|
|
114
|
-
if (err) {
|
|
115
|
-
this.ReadStream.push((0, configuration_1.format)((0, log_common_1.createLogMessageObject)(err, `Cannot compress log file at ${this.LogPath}`, log_common_1.LogLevel.Trace, "log-file-target", {}).Variables, this.Options.layout) + os_1.EOL);
|
|
116
|
-
fs.unlink(zippedPath, () => {
|
|
117
|
-
return;
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
fs.unlink(renPath, () => {
|
|
111
|
+
if (this.Options.options.compress) {
|
|
112
|
+
const zippedPath = path.join(this.ArchiveDirPath, `archived_${this.LogBaseName}_${fIndex}${this.LogFileExt}.gzip`);
|
|
113
|
+
const zip = zlib.createGzip();
|
|
114
|
+
const read = fs.createReadStream(archPath);
|
|
115
|
+
const write = fs.createWriteStream(zippedPath);
|
|
116
|
+
(0, stream_1.pipeline)(read, zip, write, (err) => {
|
|
117
|
+
if (err) {
|
|
118
|
+
void this.write((0, log_common_1.createLogMessageObject)(err, `Cannot compress log file at ${this.LogPath}`, log_common_1.LogLevel.Trace, "log-file-target", {}));
|
|
119
|
+
fs.unlink(zippedPath, () => {
|
|
121
120
|
return;
|
|
122
121
|
});
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
read.pipe(zip).pipe(write);
|
|
128
|
-
write.on("finish", () => {
|
|
129
|
-
read.close();
|
|
130
|
-
zip.close();
|
|
131
|
-
write.close();
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
if (files.length >= this.Options.options.maxArchiveFiles) {
|
|
135
|
-
fs.unlink(files[0].name, () => {
|
|
122
|
+
}
|
|
123
|
+
fs.unlink(archPath, () => {
|
|
136
124
|
return;
|
|
137
125
|
});
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
if (files.length >= this.Options.options.maxArchiveFiles) {
|
|
129
|
+
fs.unlink(files[0].name, () => {
|
|
130
|
+
return;
|
|
131
|
+
});
|
|
132
|
+
}
|
|
143
133
|
}
|
|
144
134
|
});
|
|
145
135
|
});
|
|
@@ -181,7 +171,7 @@ let FileTarget = class FileTarget extends log_common_1.LogTarget {
|
|
|
181
171
|
this.open();
|
|
182
172
|
}
|
|
183
173
|
close() {
|
|
184
|
-
this.
|
|
174
|
+
this.LogStream.unpipe(this.WriteStream);
|
|
185
175
|
this.WriteStream.end();
|
|
186
176
|
this.WriteStream = null;
|
|
187
177
|
}
|
|
@@ -190,16 +180,18 @@ let FileTarget = class FileTarget extends log_common_1.LogTarget {
|
|
|
190
180
|
flags: "a",
|
|
191
181
|
encoding: "utf-8",
|
|
192
182
|
});
|
|
193
|
-
this.ReadStream.pipe(this.WriteStream);
|
|
194
183
|
this.WriteStream.once("open", () => {
|
|
195
|
-
this.
|
|
184
|
+
void this.write((0, log_common_1.createLogMessageObject)(`Log file opened at ${this.LogPath}`, [], log_common_1.LogLevel.Trace, "log-file-target", {}));
|
|
185
|
+
if (this.WriteStream) {
|
|
186
|
+
this.LogStream.pipe(this.WriteStream);
|
|
187
|
+
}
|
|
196
188
|
});
|
|
197
189
|
this.WriteStream.once("close", () => {
|
|
198
|
-
this.
|
|
190
|
+
void this.write((0, log_common_1.createLogMessageObject)(`Log file closed at ${this.LogPath}`, [], log_common_1.LogLevel.Trace, "log-file-target", {}));
|
|
199
191
|
});
|
|
200
192
|
this.WriteStream.once("error", (err) => {
|
|
201
|
-
this.
|
|
202
|
-
this.
|
|
193
|
+
this.LogStream.unpipe(this.WriteStream);
|
|
194
|
+
void this.write((0, log_common_1.createLogMessageObject)(err, `Cannot write to log file at ${this.LogPath}`, log_common_1.LogLevel.Error, "log-file-target", {}));
|
|
203
195
|
setTimeout(() => {
|
|
204
196
|
this.initialize();
|
|
205
197
|
}, 1000);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileTarget.js","sourceRoot":"","sources":["../../src/targets/FileTarget.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAyB;AACzB,2FAA2F;AAC3F,oCAAsD;AACtD,oDAAiH;AACjH,uCAAyB;AACzB,2CAA6B;AAC7B,iDAAiD;AACjD,oDAAoD;AACpD,2CAA6B;AAC7B,2CAA6B;AAC7B,0DAAgD;AAChD,mCAA4C;
|
|
1
|
+
{"version":3,"file":"FileTarget.js","sourceRoot":"","sources":["../../src/targets/FileTarget.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2BAAyB;AACzB,2FAA2F;AAC3F,oCAAsD;AACtD,oDAAiH;AACjH,uC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iB,EAAE,EAAE,CAAC,CAAC,CAAC;YAEnI,UAAU,CAAC,GAAG,EAAE;gBACd,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,CAAC,EAAE,IAAI,CAAC,CAAC;QACX,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAjLY,UAAU;IAFtB,IAAA,gBAAW,GAAE;IACb,IAAA,eAAU,EAAC,YAAY,CAAC;GACZ,UAAU,CAiLtB;AAjLY,gCAAU"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spinajs/log",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.88",
|
|
4
4
|
"description": "Log lib for all spinejs related libs",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"private": false,
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"@types/mock-fs": "^4.13.1",
|
|
44
44
|
"mock-fs": "^5.1.2"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "7c42b937cd76ac16d6af25d7d503eb1a93ce5271"
|
|
47
47
|
}
|