@spinajs/log 1.2.74 → 1.2.81
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/lib/bootstrap.js +4 -1
- package/lib/bootstrap.js.map +1 -1
- package/lib/index.js +5 -1
- package/lib/index.js.map +1 -1
- package/lib/log.d.ts +2 -3
- package/lib/log.js +9 -4
- package/lib/log.js.map +1 -1
- package/lib/schemas/log.configuration.d.ts +0 -29
- package/lib/schemas/log.configuration.js +0 -29
- package/lib/schemas/log.configuration.js.map +1 -1
- package/lib/targets/BlackHoleTarget.d.ts +1 -2
- package/lib/targets/BlackHoleTarget.js +2 -2
- package/lib/targets/BlackHoleTarget.js.map +1 -1
- package/lib/targets/ColoredConsoleTarget.d.ts +4 -3
- package/lib/targets/ColoredConsoleTarget.js +16 -7
- package/lib/targets/ColoredConsoleTarget.js.map +1 -1
- package/lib/targets/FileTarget.d.ts +16 -13
- package/lib/targets/FileTarget.js +126 -67
- package/lib/targets/FileTarget.js.map +1 -1
- package/lib/targets/index.d.ts +0 -1
- package/lib/targets/index.js +5 -2
- package/lib/targets/index.js.map +1 -1
- package/package.json +10 -8
- package/lib/config/log.d.ts +0 -8
- package/lib/config/log.js +0 -15
- package/lib/config/log.js.map +0 -1
- package/lib/logger.d.ts +0 -4
- package/lib/logger.js +0 -30
- package/lib/logger.js.map +0 -1
- package/lib/targets/LogTarget.d.ts +0 -14
- package/lib/targets/LogTarget.js +0 -20
- package/lib/targets/LogTarget.js.map +0 -1
- package/lib/types.d.ts +0 -148
- package/lib/types.js +0 -38
- package/lib/types.js.map +0 -1
- package/lib/variables/date.d.ts +0 -17
- package/lib/variables/date.js +0 -62
- package/lib/variables/date.js.map +0 -1
- package/lib/variables/env.d.ts +0 -5
- package/lib/variables/env.js +0 -25
- package/lib/variables/env.js.map +0 -1
- package/lib/variables/index.d.ts +0 -3
- package/lib/variables/index.js +0 -16
- package/lib/variables/index.js.map +0 -1
- package/lib/variables/process.d.ts +0 -5
- package/lib/variables/process.js +0 -24
- package/lib/variables/process.js.map +0 -1
- package/yarn-error.log +0 -2383
package/lib/bootstrap.js
CHANGED
|
@@ -5,12 +5,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
8
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
12
|
exports.LogBotstrapper = void 0;
|
|
10
13
|
const FileTarget_1 = require("./targets/FileTarget");
|
|
11
14
|
const di_1 = require("@spinajs/di");
|
|
12
15
|
const log_1 = require("./log");
|
|
13
|
-
const log_configuration_1 = require("./schemas/log.configuration");
|
|
16
|
+
const log_configuration_1 = __importDefault(require("./schemas/log.configuration"));
|
|
14
17
|
let LogBotstrapper = class LogBotstrapper extends di_1.Bootstrapper {
|
|
15
18
|
bootstrap() {
|
|
16
19
|
di_1.DI.register(log_configuration_1.default).asValue("__configurationSchema__");
|
package/lib/bootstrap.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../src/bootstrap.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bootstrap.js","sourceRoot":"","sources":["../src/bootstrap.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkD;AAElD,oCAAuE;AACvE,+BAA4B;AAC5B,oFAA+D;AAG/D,IAAa,cAAc,GAA3B,MAAa,cAAe,SAAQ,iBAAY;IACvC,SAAS;QACd,OAAE,CAAC,QAAQ,CAAC,2BAAoB,CAAC,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC;Q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AAC,CAAC;QACrE,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAjCY,cAAc;IAD1B,IAAA,eAAU,EAAC,iBAAY,CAAC;GACZ,cAAc,CAiC1B;AAjCY,wCAAc"}
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,4CAA0B;AAC1B,wCAAsB;AACtB,+CAA6B;AAC7B,8CAA4B"}
|
package/lib/log.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Container, SyncModule } from "@spinajs/di";
|
|
2
|
-
import { ILogTargetDesc } from "
|
|
3
|
-
import { ILogOptions, ILogRule, ILogEntry, LogVariables, ILog } from "@spinajs/log-common";
|
|
2
|
+
import { ILogOptions, ILogRule, ILogEntry, LogVariables, ILog, ILogTargetDesc } from "@spinajs/log-common";
|
|
4
3
|
/**
|
|
5
4
|
* Default log implementation interface. Taken from bunyan. Feel free to implement own.
|
|
6
5
|
*/
|
|
@@ -15,11 +14,11 @@ export declare class Log extends SyncModule implements ILog {
|
|
|
15
14
|
*/
|
|
16
15
|
static Loggers: Map<string, Log>;
|
|
17
16
|
Timers: Map<string, Date>;
|
|
17
|
+
Targets: ILogTargetDesc[];
|
|
18
18
|
static clearLoggers(): void;
|
|
19
19
|
protected static AttachedToExitEvents: boolean;
|
|
20
20
|
protected Options: ILogOptions;
|
|
21
21
|
protected Rules: ILogRule[];
|
|
22
|
-
protected Targets: ILogTargetDesc[];
|
|
23
22
|
protected Variables: Record<string, any>;
|
|
24
23
|
protected Container: Container;
|
|
25
24
|
constructor(Name: string, variables?: Record<string, unknown>, Parent?: Log);
|
package/lib/log.js
CHANGED
|
@@ -8,16 +8,19 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
11
14
|
var Log_1;
|
|
12
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
16
|
exports.Log = void 0;
|
|
14
17
|
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
15
18
|
/* eslint-disable @typescript-eslint/no-unsafe-call */
|
|
16
19
|
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
17
|
-
const
|
|
20
|
+
const configuration_1 = require("@spinajs/configuration");
|
|
18
21
|
const di_1 = require("@spinajs/di");
|
|
19
22
|
const log_common_1 = require("@spinajs/log-common");
|
|
20
|
-
const
|
|
23
|
+
const glob_to_regexp_1 = __importDefault(require("glob-to-regexp"));
|
|
21
24
|
const exceptions_1 = require("@spinajs/exceptions");
|
|
22
25
|
function wrapWrite(level) {
|
|
23
26
|
return (err, message, ...args) => {
|
|
@@ -68,7 +71,7 @@ let Log = Log_1 = class Log extends di_1.SyncModule {
|
|
|
68
71
|
return 0;
|
|
69
72
|
}
|
|
70
73
|
resolve() {
|
|
71
|
-
const config = this.Container.get(
|
|
74
|
+
const config = this.Container.get(configuration_1.Configuration);
|
|
72
75
|
if (!config) {
|
|
73
76
|
throw new Error(`Configuration module is not avaible. Please resolve configuration module before any logging can occur`);
|
|
74
77
|
}
|
|
@@ -141,7 +144,9 @@ let Log = Log_1 = class Log extends di_1.SyncModule {
|
|
|
141
144
|
}
|
|
142
145
|
matchRulesToLogger() {
|
|
143
146
|
this.Rules = this.Options.rules.filter((r) => {
|
|
144
|
-
|
|
147
|
+
const g = (0, glob_to_regexp_1.default)(r.name);
|
|
148
|
+
// BUG: g.test throws vscode err ?
|
|
149
|
+
return g.test(this.Name);
|
|
145
150
|
});
|
|
146
151
|
}
|
|
147
152
|
};
|
package/lib/log.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.js","sourceRoot":"","sources":["../src/log.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"log.js","sourceRoot":"","sources":["../src/log.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA4D;AAC5D,sDAAsD;AACtD,0DAA0D;AAC1D,0DAAuD;AACvD,oCAA6F;AAC7F,oDAA6L;AAC7L,oEAA0C;AAC1C,oDAAoD;AAEpD,SAAS,SAAS,CAAY,KAAe;IAC3C,OAAO,CAAC,GAAmB,EAAE,OAAuB,EAAE,GAAG,IAAW,EAAE,EAAE;QACtE,IAAI,GAAG,YAAY,KAAK,EAAE;YACxB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAA,mCAAsB,EAAC,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;SACpG;aAAM;YACL,IAAI,OAAO,EAAE;gBACX,OAAO,IAAI,CAAC,KAAK,CAAC,IAAA,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,CAAC,OAAO,CAAC,CAAC;KACjC;IAED,OAAO,SAAS,CAAC,OAAO,CAAC,uBAAuB,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/D,CAAC,CAAC;AAEF,6CAA6C;AAC7C,2CAA2C;AAC3C,2DAA2D;AAC3D,2CAA2C;AAC3C,OAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;AAE9C,6CAA6C;AAC7C,mDAAmD;AACnD,cAAc;AACd,OAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;AAExC,uCAAuC;AACvC,8BAA8B;AAC9B,2CAA2C;AAC3C,OAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,uBAAuB,CAAC,CAAC"}
|
|
@@ -21,35 +21,6 @@ declare const CONFIGURATION_SCHEMA: {
|
|
|
21
21
|
type: {
|
|
22
22
|
type: string;
|
|
23
23
|
};
|
|
24
|
-
theme: {
|
|
25
|
-
type: string;
|
|
26
|
-
properties: {
|
|
27
|
-
security: {
|
|
28
|
-
type: string;
|
|
29
|
-
};
|
|
30
|
-
fatal: {
|
|
31
|
-
type: string;
|
|
32
|
-
};
|
|
33
|
-
error: {
|
|
34
|
-
type: string;
|
|
35
|
-
};
|
|
36
|
-
warn: {
|
|
37
|
-
type: string;
|
|
38
|
-
};
|
|
39
|
-
success: {
|
|
40
|
-
type: string;
|
|
41
|
-
};
|
|
42
|
-
info: {
|
|
43
|
-
type: string;
|
|
44
|
-
};
|
|
45
|
-
debug: {
|
|
46
|
-
type: string;
|
|
47
|
-
};
|
|
48
|
-
trace: {
|
|
49
|
-
type: string;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
24
|
enabled: {
|
|
54
25
|
type: string;
|
|
55
26
|
};
|
|
@@ -23,35 +23,6 @@ const CONFIGURATION_SCHEMA = {
|
|
|
23
23
|
type: {
|
|
24
24
|
type: "string",
|
|
25
25
|
},
|
|
26
|
-
theme: {
|
|
27
|
-
type: "object",
|
|
28
|
-
properties: {
|
|
29
|
-
security: {
|
|
30
|
-
type: "string",
|
|
31
|
-
},
|
|
32
|
-
fatal: {
|
|
33
|
-
type: "string",
|
|
34
|
-
},
|
|
35
|
-
error: {
|
|
36
|
-
type: "string",
|
|
37
|
-
},
|
|
38
|
-
warn: {
|
|
39
|
-
type: "string",
|
|
40
|
-
},
|
|
41
|
-
success: {
|
|
42
|
-
type: "string",
|
|
43
|
-
},
|
|
44
|
-
info: {
|
|
45
|
-
type: "string",
|
|
46
|
-
},
|
|
47
|
-
debug: {
|
|
48
|
-
type: "string",
|
|
49
|
-
},
|
|
50
|
-
trace: {
|
|
51
|
-
type: "string",
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
26
|
enabled: {
|
|
56
27
|
type: "boolean",
|
|
57
28
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.configuration.js","sourceRoot":"","sources":["../../src/schemas/log.configuration.ts"],"names":[],"mappings":";;AAAA,MAAM,oBAAoB,GAAG;IAC3B,GAAG,EAAE,uCAAuC;IAC5C,oBAAoB,EAAE,QAAQ;IAC9B,WAAW,EAAE,wCAAwC;IACrD,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,OAAO,EAAE;YACP,WAAW,EACT,wEAAwE;YAC1E,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,CAAC;YACX,WAAW,EAAE,IAAI;YACjB,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;qBACf;oBACD,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;qBACf;oBACD,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;qBACf;oBACD,
|
|
1
|
+
{"version":3,"file":"log.configuration.js","sourceRoot":"","sources":["../../src/schemas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BACJ,IAAI,EAAE,QAAQ;qBACf;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE;4BACJ,OAAO;4BACP,OAAO;4BACP,MAAM;4BACN,MAAM;4BACN,OAAO;4BACP,OAAO;4BACP,UAAU;4BACV,SAAS;yBACV;qBACF;oBACD,MAAM,EAAE;wBACN,KAAK,EAAE;4BACL;gCACE,IAAI,EAAE,QAAQ;6BACf;4BACD;gCACE,IAAI,EAAE,OAAO;gCACb,KAAK,EAAE;oCACL,IAAI,EAAE,QAAQ;iCACf;6BACF;yBACF;qBACF;iBACF;gBACD,QAAQ,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC;aACtC;SACF;KACF;CACF,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
|
|
@@ -7,12 +7,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.BlackHoleTarget = void 0;
|
|
10
|
+
const log_common_1 = require("@spinajs/log-common");
|
|
10
11
|
const di_1 = require("@spinajs/di");
|
|
11
|
-
const LogTarget_1 = require("./LogTarget");
|
|
12
12
|
/**
|
|
13
13
|
* Empty writer, usefull for tests or when we dont want to get any messages
|
|
14
14
|
*/
|
|
15
|
-
let BlackHoleTarget = class BlackHoleTarget extends
|
|
15
|
+
let BlackHoleTarget = class BlackHoleTarget extends log_common_1.LogTarget {
|
|
16
16
|
async write() {
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlackHoleTarget.js","sourceRoot":"","sources":["../../src/targets/BlackHoleTarget.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"BlackHoleTarget.js","sourceRoot":"","sources":["../../src/targets/BlackHoleTarget.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAAsE;AACtE,oCAAoD;AAGpD;;GAEG;AAGH,IAAa,eAAe,GAA5B,MAAa,eAAgB,SAAQ,sBAA+B;IAC3D,KAAK,CAAC,KAAK;QAChB,OAAO;IACT,CAAC;CACF,CAAA;AAJY,eAAe;IAF3B,IAAA,cAAS,GAAE;IACX,IAAA,eAAU,EAAC,iBAAiB,CAAC;GACjB,eAAe,CAI3B;AAJY,0CAAe"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IColoredConsoleTargetOptions, ILogEntry } from "@spinajs/log-common";
|
|
2
|
-
import {
|
|
1
|
+
import { IColoredConsoleTargetOptions, ILogEntry, LogTarget } from "@spinajs/log-common";
|
|
2
|
+
import { Chalk } from "chalk";
|
|
3
3
|
export declare const DEFAULT_THEME: {
|
|
4
4
|
security: string[];
|
|
5
5
|
fatal: string;
|
|
@@ -11,6 +11,7 @@ export declare const DEFAULT_THEME: {
|
|
|
11
11
|
trace: string;
|
|
12
12
|
};
|
|
13
13
|
export declare class ColoredConsoleTarget extends LogTarget<IColoredConsoleTargetOptions> {
|
|
14
|
+
protected theme: Chalk[];
|
|
14
15
|
protected StdConsoleCallbackMap: {
|
|
15
16
|
5: {
|
|
16
17
|
(...data: any[]): void;
|
|
@@ -45,6 +46,6 @@ export declare class ColoredConsoleTarget extends LogTarget<IColoredConsoleTarge
|
|
|
45
46
|
(message?: any, ...optionalParams: any[]): void;
|
|
46
47
|
};
|
|
47
48
|
};
|
|
48
|
-
resolve(): void
|
|
49
|
+
resolve(): Promise<void>;
|
|
49
50
|
write(data: ILogEntry): Promise<void>;
|
|
50
51
|
}
|
|
@@ -5,13 +5,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
8
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
12
|
exports.ColoredConsoleTarget = exports.DEFAULT_THEME = void 0;
|
|
10
13
|
const log_common_1 = require("@spinajs/log-common");
|
|
11
14
|
const di_1 = require("@spinajs/di");
|
|
12
|
-
const LogTarget_1 = require("./LogTarget");
|
|
13
15
|
const __1 = require("..");
|
|
14
|
-
const
|
|
16
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
15
17
|
const configuration_1 = require("@spinajs/configuration");
|
|
16
18
|
exports.DEFAULT_THEME = {
|
|
17
19
|
security: ["red", "bgBrightWhite"],
|
|
@@ -23,9 +25,10 @@ exports.DEFAULT_THEME = {
|
|
|
23
25
|
debug: "gray",
|
|
24
26
|
trace: "gray",
|
|
25
27
|
};
|
|
26
|
-
let ColoredConsoleTarget = class ColoredConsoleTarget extends
|
|
28
|
+
let ColoredConsoleTarget = class ColoredConsoleTarget extends log_common_1.LogTarget {
|
|
27
29
|
constructor() {
|
|
28
30
|
super(...arguments);
|
|
31
|
+
this.theme = [];
|
|
29
32
|
this.StdConsoleCallbackMap = {
|
|
30
33
|
[__1.LogLevel.Error]: console.error,
|
|
31
34
|
[__1.LogLevel.Fatal]: console.error,
|
|
@@ -37,9 +40,15 @@ let ColoredConsoleTarget = class ColoredConsoleTarget extends LogTarget_1.LogTar
|
|
|
37
40
|
[__1.LogLevel.Warn]: console.warn,
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
|
-
resolve() {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
async resolve() {
|
|
44
|
+
this.theme[__1.LogLevel.Trace] = chalk_1.default.gray;
|
|
45
|
+
this.theme[__1.LogLevel.Debug] = chalk_1.default.gray;
|
|
46
|
+
this.theme[__1.LogLevel.Info] = chalk_1.default.white;
|
|
47
|
+
this.theme[__1.LogLevel.Success] = chalk_1.default.white.bgGreen;
|
|
48
|
+
this.theme[__1.LogLevel.Warn] = chalk_1.default.yellow;
|
|
49
|
+
this.theme[__1.LogLevel.Error] = chalk_1.default.red;
|
|
50
|
+
this.theme[__1.LogLevel.Fatal] = chalk_1.default.white.bgRed;
|
|
51
|
+
this.theme[__1.LogLevel.Security] = chalk_1.default.yellow.bgRed;
|
|
43
52
|
super.resolve();
|
|
44
53
|
}
|
|
45
54
|
async write(data) {
|
|
@@ -51,7 +60,7 @@ let ColoredConsoleTarget = class ColoredConsoleTarget extends LogTarget_1.LogTar
|
|
|
51
60
|
* we are safe to call, disable eslint
|
|
52
61
|
*/
|
|
53
62
|
/* eslint-disable */
|
|
54
|
-
|
|
63
|
+
this.theme[log_common_1.LogLevelStrings[data.Level]]((0, configuration_1.format)(data.Variables, this.Options.layout)));
|
|
55
64
|
}
|
|
56
65
|
};
|
|
57
66
|
ColoredConsoleTarget = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColoredConsoleTarget.js","sourceRoot":"","sources":["../../src/targets/ColoredConsoleTarget.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ColoredConsoleTarget.js","sourceRoot":"","sources":["../../src/targets/ColoredConsoleTarget.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA0G;AAC1G,oCAAoD;AACpD,0BAA8B;AAC9B,kDAAqC;AACrC,0DAAgD;AAEnC,QAAA,aAAa,GAAG;IAC3B,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,CAAC;IAClC,KAAK,EAAE,KAAK;IACZ,KAAK,EAAE,WAAW;IAClB,IAAI,EAAE,QAAQ;IACd,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,MAAM;IACb,KAAK,EAAE,MAAM;CACd,CAAC;AAIF,IAAa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,sBAAuC;IAAjF;;QACY,UAAK,GAAa,EAAE,CAAC;QAErB,0BAAqB,GAAG;YAChC,CAA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AK,CAAC,MAAM,CAAC,KAAK,CAAC;QAEnD,KAAK,CAAC,OAAO,EAAE,CAAC;IAClB,CAAC;IAEM,KAAK,CAAC,KAAK,CAAC,IAAe;QAChC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YACzB,OAAO;SACR;QAED,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,KAAK,CAAC;QACpC;;WAEG;QACH,oBAAoB;QACnB,IAAI,CAAC,KAAa,CAAC,4BAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAA,sBAAM,EAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAC9F,CAAC;IACJ,CAAC;CACF,CAAA;AA5CY,oBAAoB;IAFhC,IAAA,cAAS,GAAE;IACX,IAAA,eAAU,EAAC,eAAe,CAAC;GACf,oBAAoB,CA4ChC;AA5CY,oDAAoB"}
|
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
import { IFileTargetOptions, ILogEntry } from "@spinajs/log-common";
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { IFileTargetOptions, ILogEntry, LogTarget } from "@spinajs/log-common";
|
|
3
|
+
import * as fs from "fs";
|
|
3
4
|
import { Job } from "node-schedule";
|
|
5
|
+
import { Readable } from "stream";
|
|
4
6
|
export declare class FileTarget extends LogTarget<IFileTargetOptions> {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
LogDirPath: string;
|
|
8
|
+
LogFileName: string;
|
|
9
|
+
LogPath: string;
|
|
10
|
+
LogFileExt: string;
|
|
11
|
+
LogBaseName: string;
|
|
12
|
+
ArchiveDirPath: string;
|
|
11
13
|
protected RotateJob: Job;
|
|
12
|
-
protected ArchiveJob: Job;
|
|
13
14
|
protected CurrentFileSize: number;
|
|
14
|
-
protected
|
|
15
|
-
protected
|
|
16
|
-
|
|
15
|
+
protected IsArchiving: boolean;
|
|
16
|
+
protected WriteStream: fs.WriteStream;
|
|
17
|
+
protected ReadStream: Readable;
|
|
18
|
+
resolve(): Promise<void>;
|
|
17
19
|
write(data: ILogEntry): Promise<void>;
|
|
18
20
|
protected archive(): void;
|
|
19
|
-
protected flush(): void;
|
|
20
21
|
private rotate;
|
|
21
22
|
private initialize;
|
|
23
|
+
private close;
|
|
24
|
+
private open;
|
|
22
25
|
}
|