@logtape/logtape 1.4.0-dev.466 → 2.0.0-dev.469
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/README.md +15 -14
- package/dist/formatter.d.cts +2 -2
- package/dist/formatter.d.ts +2 -2
- package/dist/formatter.js.map +1 -1
- package/dist/logger.d.cts +17 -17
- package/dist/logger.d.ts +17 -17
- package/dist/logger.js.map +1 -1
- package/dist/sink.d.cts +1 -1
- package/dist/sink.d.ts +1 -1
- package/dist/sink.js.map +1 -1
- package/package.json +1 -1
package/dist/logger.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ interface Logger {
|
|
|
128
128
|
* `{value}`).
|
|
129
129
|
* @param properties An async callback that returns the properties.
|
|
130
130
|
* @returns A promise that resolves when the log is written.
|
|
131
|
-
* @since
|
|
131
|
+
* @since 2.0.0
|
|
132
132
|
*/
|
|
133
133
|
trace(message: string, properties: () => Promise<Record<string, unknown>>): Promise<void>;
|
|
134
134
|
/**
|
|
@@ -227,7 +227,7 @@ interface Logger {
|
|
|
227
227
|
* `{value}`).
|
|
228
228
|
* @param properties An async callback that returns the properties.
|
|
229
229
|
* @returns A promise that resolves when the log is written.
|
|
230
|
-
* @since
|
|
230
|
+
* @since 2.0.0
|
|
231
231
|
*/
|
|
232
232
|
debug(message: string, properties: () => Promise<Record<string, unknown>>): Promise<void>;
|
|
233
233
|
/**
|
|
@@ -325,7 +325,7 @@ interface Logger {
|
|
|
325
325
|
* `{value}`).
|
|
326
326
|
* @param properties An async callback that returns the properties.
|
|
327
327
|
* @returns A promise that resolves when the log is written.
|
|
328
|
-
* @since
|
|
328
|
+
* @since 2.0.0
|
|
329
329
|
*/
|
|
330
330
|
info(message: string, properties: () => Promise<Record<string, unknown>>): Promise<void>;
|
|
331
331
|
/**
|
|
@@ -386,7 +386,7 @@ interface Logger {
|
|
|
386
386
|
* in the message template instead.
|
|
387
387
|
*
|
|
388
388
|
* @param error The error to log.
|
|
389
|
-
* @since
|
|
389
|
+
* @since 2.0.0
|
|
390
390
|
*/
|
|
391
391
|
warn(error: Error): void;
|
|
392
392
|
/**
|
|
@@ -398,7 +398,7 @@ interface Logger {
|
|
|
398
398
|
*
|
|
399
399
|
* @param message The message.
|
|
400
400
|
* @param error The error to log.
|
|
401
|
-
* @since
|
|
401
|
+
* @since 2.0.0
|
|
402
402
|
*/
|
|
403
403
|
warn(message: string, error: Error): void;
|
|
404
404
|
/**
|
|
@@ -454,7 +454,7 @@ interface Logger {
|
|
|
454
454
|
* `{value}`).
|
|
455
455
|
* @param properties An async callback that returns the properties.
|
|
456
456
|
* @returns A promise that resolves when the log is written.
|
|
457
|
-
* @since
|
|
457
|
+
* @since 2.0.0
|
|
458
458
|
*/
|
|
459
459
|
warn(message: string, properties: () => Promise<Record<string, unknown>>): Promise<void>;
|
|
460
460
|
/**
|
|
@@ -515,7 +515,7 @@ interface Logger {
|
|
|
515
515
|
* in the message template instead.
|
|
516
516
|
*
|
|
517
517
|
* @param error The error to log.
|
|
518
|
-
* @since
|
|
518
|
+
* @since 2.0.0
|
|
519
519
|
*/
|
|
520
520
|
warning(error: Error): void;
|
|
521
521
|
/**
|
|
@@ -527,7 +527,7 @@ interface Logger {
|
|
|
527
527
|
*
|
|
528
528
|
* @param message The message.
|
|
529
529
|
* @param error The error to log.
|
|
530
|
-
* @since
|
|
530
|
+
* @since 2.0.0
|
|
531
531
|
*/
|
|
532
532
|
warning(message: string, error: Error): void;
|
|
533
533
|
/**
|
|
@@ -585,7 +585,7 @@ interface Logger {
|
|
|
585
585
|
* `{value}`).
|
|
586
586
|
* @param properties An async callback that returns the properties.
|
|
587
587
|
* @returns A promise that resolves when the log is written.
|
|
588
|
-
* @since
|
|
588
|
+
* @since 2.0.0
|
|
589
589
|
*/
|
|
590
590
|
warning(message: string, properties: () => Promise<Record<string, unknown>>): Promise<void>;
|
|
591
591
|
/**
|
|
@@ -647,7 +647,7 @@ interface Logger {
|
|
|
647
647
|
* in the message template instead.
|
|
648
648
|
*
|
|
649
649
|
* @param error The error to log.
|
|
650
|
-
* @since
|
|
650
|
+
* @since 2.0.0
|
|
651
651
|
*/
|
|
652
652
|
error(error: Error): void;
|
|
653
653
|
/**
|
|
@@ -659,7 +659,7 @@ interface Logger {
|
|
|
659
659
|
*
|
|
660
660
|
* @param message The message.
|
|
661
661
|
* @param error The error to log.
|
|
662
|
-
* @since
|
|
662
|
+
* @since 2.0.0
|
|
663
663
|
*/
|
|
664
664
|
error(message: string, error: Error): void;
|
|
665
665
|
/**
|
|
@@ -715,7 +715,7 @@ interface Logger {
|
|
|
715
715
|
* `{value}`).
|
|
716
716
|
* @param properties An async callback that returns the properties.
|
|
717
717
|
* @returns A promise that resolves when the log is written.
|
|
718
|
-
* @since
|
|
718
|
+
* @since 2.0.0
|
|
719
719
|
*/
|
|
720
720
|
error(message: string, properties: () => Promise<Record<string, unknown>>): Promise<void>;
|
|
721
721
|
/**
|
|
@@ -776,7 +776,7 @@ interface Logger {
|
|
|
776
776
|
* in the message template instead.
|
|
777
777
|
*
|
|
778
778
|
* @param error The error to log.
|
|
779
|
-
* @since
|
|
779
|
+
* @since 2.0.0
|
|
780
780
|
*/
|
|
781
781
|
fatal(error: Error): void;
|
|
782
782
|
/**
|
|
@@ -788,7 +788,7 @@ interface Logger {
|
|
|
788
788
|
*
|
|
789
789
|
* @param message The message.
|
|
790
790
|
* @param error The error to log.
|
|
791
|
-
* @since
|
|
791
|
+
* @since 2.0.0
|
|
792
792
|
*/
|
|
793
793
|
fatal(message: string, error: Error): void;
|
|
794
794
|
/**
|
|
@@ -844,7 +844,7 @@ interface Logger {
|
|
|
844
844
|
* `{value}`).
|
|
845
845
|
* @param properties An async callback that returns the properties.
|
|
846
846
|
* @returns A promise that resolves when the log is written.
|
|
847
|
-
* @since
|
|
847
|
+
* @since 2.0.0
|
|
848
848
|
*/
|
|
849
849
|
fatal(message: string, properties: () => Promise<Record<string, unknown>>): Promise<void>;
|
|
850
850
|
/**
|
|
@@ -938,7 +938,7 @@ interface Logger {
|
|
|
938
938
|
* @param level The log level to check.
|
|
939
939
|
* @returns `true` if a message of the given level would be logged,
|
|
940
940
|
* `false` otherwise.
|
|
941
|
-
* @since
|
|
941
|
+
* @since 2.0.0
|
|
942
942
|
*/
|
|
943
943
|
isEnabledFor(level: LogLevel): boolean;
|
|
944
944
|
}
|
|
@@ -985,7 +985,7 @@ interface LogMethod {
|
|
|
985
985
|
* `{value}`).
|
|
986
986
|
* @param properties An async callback that returns the properties.
|
|
987
987
|
* @returns A promise that resolves when the log is written.
|
|
988
|
-
* @since
|
|
988
|
+
* @since 2.0.0
|
|
989
989
|
*/
|
|
990
990
|
(message: string, properties: () => Promise<Record<string, unknown>>): Promise<void>;
|
|
991
991
|
/**
|