@jaypie/logger 1.2.18 → 1.2.20
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/cjs/index.cjs +319 -7
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/index.d.cts +53 -5
- package/dist/cjs/src/JaypieLogger.d.ts +64 -0
- package/dist/cjs/{Logger.d.ts → src/Logger.d.ts} +9 -2
- package/dist/cjs/{constants.d.ts → src/constants.d.ts} +6 -0
- package/dist/cjs/{index.d.ts → src/index.d.ts} +3 -1
- package/dist/cjs/src/limits.d.ts +55 -0
- package/dist/esm/index.d.ts +53 -5
- package/dist/esm/index.js +319 -8
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/src/JaypieLogger.d.ts +64 -0
- package/dist/esm/{Logger.d.ts → src/Logger.d.ts} +9 -2
- package/dist/esm/src/__tests__/limits.spec.d.ts +1 -0
- package/dist/esm/src/__tests__/sanitizeAuth.spec.d.ts +1 -0
- package/dist/esm/{constants.d.ts → src/constants.d.ts} +6 -0
- package/dist/esm/src/index.d.ts +10 -0
- package/dist/esm/src/limits.d.ts +55 -0
- package/package.json +1 -1
- package/dist/cjs/JaypieLogger.d.ts +0 -40
- package/dist/esm/JaypieLogger.d.ts +0 -40
- /package/dist/cjs/{__tests__ → src/__tests__}/datadogTransport.spec.d.ts +0 -0
- /package/dist/cjs/{__tests__ → src/__tests__}/index.spec.d.ts +0 -0
- /package/dist/cjs/{__tests__/sanitizeAuth.spec.d.ts → src/__tests__/limits.spec.d.ts} +0 -0
- /package/dist/{esm → cjs/src}/__tests__/sanitizeAuth.spec.d.ts +0 -0
- /package/dist/cjs/{datadogTransport.d.ts → src/datadogTransport.d.ts} +0 -0
- /package/dist/cjs/{forceVar.d.ts → src/forceVar.d.ts} +0 -0
- /package/dist/cjs/{logTags.d.ts → src/logTags.d.ts} +0 -0
- /package/dist/cjs/{logVar.d.ts → src/logVar.d.ts} +0 -0
- /package/dist/cjs/{pipelines.d.ts → src/pipelines.d.ts} +0 -0
- /package/dist/cjs/{sanitizeAuth.d.ts → src/sanitizeAuth.d.ts} +0 -0
- /package/dist/cjs/{utils.d.ts → src/utils.d.ts} +0 -0
- /package/dist/esm/{__tests__ → src/__tests__}/datadogTransport.spec.d.ts +0 -0
- /package/dist/esm/{__tests__ → src/__tests__}/index.spec.d.ts +0 -0
- /package/dist/esm/{datadogTransport.d.ts → src/datadogTransport.d.ts} +0 -0
- /package/dist/esm/{forceVar.d.ts → src/forceVar.d.ts} +0 -0
- /package/dist/esm/{logTags.d.ts → src/logTags.d.ts} +0 -0
- /package/dist/esm/{logVar.d.ts → src/logVar.d.ts} +0 -0
- /package/dist/esm/{pipelines.d.ts → src/pipelines.d.ts} +0 -0
- /package/dist/esm/{sanitizeAuth.d.ts → src/sanitizeAuth.d.ts} +0 -0
- /package/dist/esm/{utils.d.ts → src/utils.d.ts} +0 -0
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import Logger from "./Logger";
|
|
2
|
-
interface JaypieLoggerOptions {
|
|
3
|
-
level?: string;
|
|
4
|
-
tags?: Record<string, string>;
|
|
5
|
-
}
|
|
6
|
-
declare class JaypieLogger {
|
|
7
|
-
debug: Logger["debug"];
|
|
8
|
-
error: Logger["error"];
|
|
9
|
-
fatal: Logger["fatal"];
|
|
10
|
-
info: Logger["info"];
|
|
11
|
-
level: string;
|
|
12
|
-
trace: Logger["trace"];
|
|
13
|
-
var: Logger["var"];
|
|
14
|
-
warn: Logger["warn"];
|
|
15
|
-
private _errorCount;
|
|
16
|
-
private _logger;
|
|
17
|
-
private _loggers;
|
|
18
|
-
private _params;
|
|
19
|
-
private _report;
|
|
20
|
-
private _sessionActive;
|
|
21
|
-
private _tags;
|
|
22
|
-
private _warnCount;
|
|
23
|
-
private _withLoggers;
|
|
24
|
-
constructor({ level, tags, }?: JaypieLoggerOptions);
|
|
25
|
-
flag(flag?: string): JaypieLogger;
|
|
26
|
-
init(): void;
|
|
27
|
-
lib({ level, lib, tags, }?: {
|
|
28
|
-
level?: string;
|
|
29
|
-
lib?: string;
|
|
30
|
-
tags?: Record<string, string>;
|
|
31
|
-
}): JaypieLogger;
|
|
32
|
-
report(data: Record<string, unknown>): void;
|
|
33
|
-
setup(tags?: Record<string, unknown>): void;
|
|
34
|
-
tag(tags: Record<string, unknown>): void;
|
|
35
|
-
teardown(): void;
|
|
36
|
-
untag(key: unknown): void;
|
|
37
|
-
with(key: unknown, value?: unknown): JaypieLogger;
|
|
38
|
-
}
|
|
39
|
-
export declare function createLogger(tags?: Record<string, string>): JaypieLogger;
|
|
40
|
-
export default JaypieLogger;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import Logger from "./Logger";
|
|
2
|
-
interface JaypieLoggerOptions {
|
|
3
|
-
level?: string;
|
|
4
|
-
tags?: Record<string, string>;
|
|
5
|
-
}
|
|
6
|
-
declare class JaypieLogger {
|
|
7
|
-
debug: Logger["debug"];
|
|
8
|
-
error: Logger["error"];
|
|
9
|
-
fatal: Logger["fatal"];
|
|
10
|
-
info: Logger["info"];
|
|
11
|
-
level: string;
|
|
12
|
-
trace: Logger["trace"];
|
|
13
|
-
var: Logger["var"];
|
|
14
|
-
warn: Logger["warn"];
|
|
15
|
-
private _errorCount;
|
|
16
|
-
private _logger;
|
|
17
|
-
private _loggers;
|
|
18
|
-
private _params;
|
|
19
|
-
private _report;
|
|
20
|
-
private _sessionActive;
|
|
21
|
-
private _tags;
|
|
22
|
-
private _warnCount;
|
|
23
|
-
private _withLoggers;
|
|
24
|
-
constructor({ level, tags, }?: JaypieLoggerOptions);
|
|
25
|
-
flag(flag?: string): JaypieLogger;
|
|
26
|
-
init(): void;
|
|
27
|
-
lib({ level, lib, tags, }?: {
|
|
28
|
-
level?: string;
|
|
29
|
-
lib?: string;
|
|
30
|
-
tags?: Record<string, string>;
|
|
31
|
-
}): JaypieLogger;
|
|
32
|
-
report(data: Record<string, unknown>): void;
|
|
33
|
-
setup(tags?: Record<string, unknown>): void;
|
|
34
|
-
tag(tags: Record<string, unknown>): void;
|
|
35
|
-
teardown(): void;
|
|
36
|
-
untag(key: unknown): void;
|
|
37
|
-
with(key: unknown, value?: unknown): JaypieLogger;
|
|
38
|
-
}
|
|
39
|
-
export declare function createLogger(tags?: Record<string, string>): JaypieLogger;
|
|
40
|
-
export default JaypieLogger;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|