@logtape/logtape 0.11.0-dev.174 → 0.11.0-dev.175
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/esm/formatter.js +25 -1
- package/esm/mod.js +1 -1
- package/package.json +1 -1
- package/script/formatter.js +26 -2
- package/script/mod.js +2 -1
- package/types/formatter.d.ts +25 -1
- package/types/formatter.d.ts.map +1 -1
- package/types/mod.d.ts +1 -1
- package/types/mod.d.ts.map +1 -1
package/esm/formatter.js
CHANGED
|
@@ -229,7 +229,14 @@ export function getAnsiColorFormatter(options = {}) {
|
|
|
229
229
|
*/
|
|
230
230
|
export const ansiColorFormatter = getAnsiColorFormatter();
|
|
231
231
|
/**
|
|
232
|
-
* Get a [JSON Lines] formatter with the specified options.
|
|
232
|
+
* Get a [JSON Lines] formatter with the specified options. The log records
|
|
233
|
+
* will be rendered as JSON objects, one per line, which is a common format
|
|
234
|
+
* for log files. This format is also known as Newline-Delimited JSON (NDJSON).
|
|
235
|
+
* It looks like this:
|
|
236
|
+
*
|
|
237
|
+
* ```json
|
|
238
|
+
* {"@timestamp":"2023-11-14T22:13:20.000Z","level":"INFO","message":"Hello, world!","logger":"my.logger","properties":{"key":"value"}}
|
|
239
|
+
* ```
|
|
233
240
|
*
|
|
234
241
|
* [JSON Lines]: https://jsonlines.org/
|
|
235
242
|
* @param options The options for the JSON Lines formatter.
|
|
@@ -304,6 +311,23 @@ export function getJsonLinesFormatter(options = {}) {
|
|
|
304
311
|
});
|
|
305
312
|
};
|
|
306
313
|
}
|
|
314
|
+
/**
|
|
315
|
+
* The default [JSON Lines] formatter. This formatter formats log records
|
|
316
|
+
* as JSON objects, one per line, which is a common format for log files.
|
|
317
|
+
* It looks like this:
|
|
318
|
+
*
|
|
319
|
+
* ```json
|
|
320
|
+
* {"@timestamp":"2023-11-14T22:13:20.000Z","level":"INFO","message":"Hello, world!","logger":"my.logger","properties":{"key":"value"}}
|
|
321
|
+
* ```
|
|
322
|
+
*
|
|
323
|
+
* You can customize the output by passing options to
|
|
324
|
+
* {@link getJsonLinesFormatter}. For example, you can change the category
|
|
325
|
+
* separator, the message format, and how the properties are formatted.
|
|
326
|
+
*
|
|
327
|
+
* [JSON Lines]: https://jsonlines.org/
|
|
328
|
+
* @since 0.11.0
|
|
329
|
+
*/
|
|
330
|
+
export const jsonLinesFormatter = getJsonLinesFormatter();
|
|
307
331
|
/**
|
|
308
332
|
* The styles for the log level in the console.
|
|
309
333
|
*/
|
package/esm/mod.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { ConfigError, configure, configureSync, dispose, disposeSync, getConfig, reset, resetSync, } from "./config.js";
|
|
2
2
|
export { withContext } from "./context.js";
|
|
3
3
|
export { getLevelFilter, toFilter, } from "./filter.js";
|
|
4
|
-
export { ansiColorFormatter, defaultConsoleFormatter, defaultTextFormatter, getAnsiColorFormatter, getJsonLinesFormatter, getTextFormatter, } from "./formatter.js";
|
|
4
|
+
export { ansiColorFormatter, defaultConsoleFormatter, defaultTextFormatter, getAnsiColorFormatter, getJsonLinesFormatter, getTextFormatter, jsonLinesFormatter, } from "./formatter.js";
|
|
5
5
|
export { compareLogLevel, isLogLevel, parseLogLevel, } from "./level.js";
|
|
6
6
|
export { getLogger } from "./logger.js";
|
|
7
7
|
export { getConsoleSink, getStreamSink, withFilter, } from "./sink.js";
|
package/package.json
CHANGED
package/script/formatter.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ansiColorFormatter = exports.defaultTextFormatter = void 0;
|
|
6
|
+
exports.jsonLinesFormatter = exports.ansiColorFormatter = exports.defaultTextFormatter = void 0;
|
|
7
7
|
exports.getTextFormatter = getTextFormatter;
|
|
8
8
|
exports.getAnsiColorFormatter = getAnsiColorFormatter;
|
|
9
9
|
exports.getJsonLinesFormatter = getJsonLinesFormatter;
|
|
@@ -239,7 +239,14 @@ function getAnsiColorFormatter(options = {}) {
|
|
|
239
239
|
*/
|
|
240
240
|
exports.ansiColorFormatter = getAnsiColorFormatter();
|
|
241
241
|
/**
|
|
242
|
-
* Get a [JSON Lines] formatter with the specified options.
|
|
242
|
+
* Get a [JSON Lines] formatter with the specified options. The log records
|
|
243
|
+
* will be rendered as JSON objects, one per line, which is a common format
|
|
244
|
+
* for log files. This format is also known as Newline-Delimited JSON (NDJSON).
|
|
245
|
+
* It looks like this:
|
|
246
|
+
*
|
|
247
|
+
* ```json
|
|
248
|
+
* {"@timestamp":"2023-11-14T22:13:20.000Z","level":"INFO","message":"Hello, world!","logger":"my.logger","properties":{"key":"value"}}
|
|
249
|
+
* ```
|
|
243
250
|
*
|
|
244
251
|
* [JSON Lines]: https://jsonlines.org/
|
|
245
252
|
* @param options The options for the JSON Lines formatter.
|
|
@@ -314,6 +321,23 @@ function getJsonLinesFormatter(options = {}) {
|
|
|
314
321
|
});
|
|
315
322
|
};
|
|
316
323
|
}
|
|
324
|
+
/**
|
|
325
|
+
* The default [JSON Lines] formatter. This formatter formats log records
|
|
326
|
+
* as JSON objects, one per line, which is a common format for log files.
|
|
327
|
+
* It looks like this:
|
|
328
|
+
*
|
|
329
|
+
* ```json
|
|
330
|
+
* {"@timestamp":"2023-11-14T22:13:20.000Z","level":"INFO","message":"Hello, world!","logger":"my.logger","properties":{"key":"value"}}
|
|
331
|
+
* ```
|
|
332
|
+
*
|
|
333
|
+
* You can customize the output by passing options to
|
|
334
|
+
* {@link getJsonLinesFormatter}. For example, you can change the category
|
|
335
|
+
* separator, the message format, and how the properties are formatted.
|
|
336
|
+
*
|
|
337
|
+
* [JSON Lines]: https://jsonlines.org/
|
|
338
|
+
* @since 0.11.0
|
|
339
|
+
*/
|
|
340
|
+
exports.jsonLinesFormatter = getJsonLinesFormatter();
|
|
317
341
|
/**
|
|
318
342
|
* The styles for the log level in the console.
|
|
319
343
|
*/
|
package/script/mod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.withFilter = exports.getStreamSink = exports.getConsoleSink = exports.getLogger = exports.parseLogLevel = exports.isLogLevel = exports.compareLogLevel = exports.getTextFormatter = exports.getJsonLinesFormatter = exports.getAnsiColorFormatter = exports.defaultTextFormatter = exports.defaultConsoleFormatter = exports.ansiColorFormatter = exports.toFilter = exports.getLevelFilter = exports.withContext = exports.resetSync = exports.reset = exports.getConfig = exports.disposeSync = exports.dispose = exports.configureSync = exports.configure = exports.ConfigError = void 0;
|
|
3
|
+
exports.withFilter = exports.getStreamSink = exports.getConsoleSink = exports.getLogger = exports.parseLogLevel = exports.isLogLevel = exports.compareLogLevel = exports.jsonLinesFormatter = exports.getTextFormatter = exports.getJsonLinesFormatter = exports.getAnsiColorFormatter = exports.defaultTextFormatter = exports.defaultConsoleFormatter = exports.ansiColorFormatter = exports.toFilter = exports.getLevelFilter = exports.withContext = exports.resetSync = exports.reset = exports.getConfig = exports.disposeSync = exports.dispose = exports.configureSync = exports.configure = exports.ConfigError = void 0;
|
|
4
4
|
var config_js_1 = require("./config.js");
|
|
5
5
|
Object.defineProperty(exports, "ConfigError", { enumerable: true, get: function () { return config_js_1.ConfigError; } });
|
|
6
6
|
Object.defineProperty(exports, "configure", { enumerable: true, get: function () { return config_js_1.configure; } });
|
|
@@ -22,6 +22,7 @@ Object.defineProperty(exports, "defaultTextFormatter", { enumerable: true, get:
|
|
|
22
22
|
Object.defineProperty(exports, "getAnsiColorFormatter", { enumerable: true, get: function () { return formatter_js_1.getAnsiColorFormatter; } });
|
|
23
23
|
Object.defineProperty(exports, "getJsonLinesFormatter", { enumerable: true, get: function () { return formatter_js_1.getJsonLinesFormatter; } });
|
|
24
24
|
Object.defineProperty(exports, "getTextFormatter", { enumerable: true, get: function () { return formatter_js_1.getTextFormatter; } });
|
|
25
|
+
Object.defineProperty(exports, "jsonLinesFormatter", { enumerable: true, get: function () { return formatter_js_1.jsonLinesFormatter; } });
|
|
25
26
|
var level_js_1 = require("./level.js");
|
|
26
27
|
Object.defineProperty(exports, "compareLogLevel", { enumerable: true, get: function () { return level_js_1.compareLogLevel; } });
|
|
27
28
|
Object.defineProperty(exports, "isLogLevel", { enumerable: true, get: function () { return level_js_1.isLogLevel; } });
|
package/types/formatter.d.ts
CHANGED
|
@@ -280,7 +280,14 @@ export interface JsonLinesFormatterOptions {
|
|
|
280
280
|
readonly properties?: "flatten" | `prepend:${string}` | `nest:${string}`;
|
|
281
281
|
}
|
|
282
282
|
/**
|
|
283
|
-
* Get a [JSON Lines] formatter with the specified options.
|
|
283
|
+
* Get a [JSON Lines] formatter with the specified options. The log records
|
|
284
|
+
* will be rendered as JSON objects, one per line, which is a common format
|
|
285
|
+
* for log files. This format is also known as Newline-Delimited JSON (NDJSON).
|
|
286
|
+
* It looks like this:
|
|
287
|
+
*
|
|
288
|
+
* ```json
|
|
289
|
+
* {"@timestamp":"2023-11-14T22:13:20.000Z","level":"INFO","message":"Hello, world!","logger":"my.logger","properties":{"key":"value"}}
|
|
290
|
+
* ```
|
|
284
291
|
*
|
|
285
292
|
* [JSON Lines]: https://jsonlines.org/
|
|
286
293
|
* @param options The options for the JSON Lines formatter.
|
|
@@ -288,6 +295,23 @@ export interface JsonLinesFormatterOptions {
|
|
|
288
295
|
* @since 0.11.0
|
|
289
296
|
*/
|
|
290
297
|
export declare function getJsonLinesFormatter(options?: JsonLinesFormatterOptions): TextFormatter;
|
|
298
|
+
/**
|
|
299
|
+
* The default [JSON Lines] formatter. This formatter formats log records
|
|
300
|
+
* as JSON objects, one per line, which is a common format for log files.
|
|
301
|
+
* It looks like this:
|
|
302
|
+
*
|
|
303
|
+
* ```json
|
|
304
|
+
* {"@timestamp":"2023-11-14T22:13:20.000Z","level":"INFO","message":"Hello, world!","logger":"my.logger","properties":{"key":"value"}}
|
|
305
|
+
* ```
|
|
306
|
+
*
|
|
307
|
+
* You can customize the output by passing options to
|
|
308
|
+
* {@link getJsonLinesFormatter}. For example, you can change the category
|
|
309
|
+
* separator, the message format, and how the properties are formatted.
|
|
310
|
+
*
|
|
311
|
+
* [JSON Lines]: https://jsonlines.org/
|
|
312
|
+
* @since 0.11.0
|
|
313
|
+
*/
|
|
314
|
+
export declare const jsonLinesFormatter: TextFormatter;
|
|
291
315
|
/**
|
|
292
316
|
* A console formatter is a function that accepts a log record and returns
|
|
293
317
|
* an array of arguments to pass to {@link console.log}.
|
package/types/formatter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../src/formatter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,MAAM,EAAE,SAAS,KAAK,MAAM,CAAC;AA0D1D;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,EAAE,SAAS,CAAC;CACnB;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,SAAS,CAAC,EACN,oBAAoB,GACpB,cAAc,GACd,WAAW,GACX,eAAe,GACf,SAAS,GACT,MAAM,GACN,MAAM,GACN,SAAS,GACT,MAAM,GACN,UAAU,GACV,CAAC,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAC,CAAC;I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AAU,CAAC;IAE3C;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,GAAG,WAAW,MAAM,EAAE,GAAG,QAAQ,MAAM,EAAE,CAAC;CAC1E;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,GAAE,yBAA8B,GACtC,aAAa,CA4Ef;AAED;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kBAAkB,EAAE,aAAuC,CAAC;AAEzE;;;;;;;GAOG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,SAAS,KAAK,SAAS,OAAO,EAAE,CAAC;AAazE;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,OAAO,EAAE,CA2B7E"}
|
package/types/mod.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { type Config, ConfigError, configure, configureSync, dispose, disposeSync, getConfig, type LoggerConfig, reset, resetSync, } from "./config.js";
|
|
2
2
|
export { type ContextLocalStorage, withContext } from "./context.js";
|
|
3
3
|
export { type Filter, type FilterLike, getLevelFilter, toFilter, } from "./filter.js";
|
|
4
|
-
export { type AnsiColor, ansiColorFormatter, type AnsiColorFormatterOptions, type AnsiStyle, type ConsoleFormatter, defaultConsoleFormatter, defaultTextFormatter, type FormattedValues, getAnsiColorFormatter, getJsonLinesFormatter, getTextFormatter, type JsonLinesFormatterOptions, type TextFormatter, type TextFormatterOptions, } from "./formatter.js";
|
|
4
|
+
export { type AnsiColor, ansiColorFormatter, type AnsiColorFormatterOptions, type AnsiStyle, type ConsoleFormatter, defaultConsoleFormatter, defaultTextFormatter, type FormattedValues, getAnsiColorFormatter, getJsonLinesFormatter, getTextFormatter, jsonLinesFormatter, type JsonLinesFormatterOptions, type TextFormatter, type TextFormatterOptions, } from "./formatter.js";
|
|
5
5
|
export { compareLogLevel, isLogLevel, type LogLevel, parseLogLevel, } from "./level.js";
|
|
6
6
|
export { getLogger, type Logger } from "./logger.js";
|
|
7
7
|
export type { LogRecord } from "./record.js";
|
package/types/mod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,WAAW,EACX,SAAS,EACT,aAAa,EACb,OAAO,EACP,WAAW,EACX,SAAS,EACT,KAAK,YAAY,EACjB,KAAK,EACL,SAAS,GACV,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,KAAK,mBAAmB,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EACL,KAAK,MAAM,EACX,KAAK,UAAU,EACf,cAAc,EACd,QAAQ,GACT,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,KAAK,SAAS,EACd,kBAAkB,EAClB,KAAK,yBAAyB,EAC9B,KAAK,SAAS,EACd,KAAK,gBAAgB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,KAAK,eAAe,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,EAChB,KAAK,yBAAyB,EAC9B,KAAK,aAAa,EAClB,KAAK,oBAAoB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,eAAe,EACf,UAAU,EACV,KAAK,QAAQ,EACb,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,SAAS,EAAE,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AACrD,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EACL,KAAK,kBAAkB,EACvB,cAAc,EACd,aAAa,EACb,KAAK,IAAI,EACT,KAAK,iBAAiB,EACtB,UAAU,GACX,MAAM,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,WAAW,EAC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