@logtape/logtape 0.11.0-dev.173 → 0.11.0-dev.174
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 +76 -0
- package/esm/mod.js +1 -1
- package/package.json +1 -1
- package/script/formatter.js +77 -0
- package/script/mod.js +2 -1
- package/types/formatter.d.ts +47 -0
- package/types/formatter.d.ts.map +1 -1
- package/types/logger.d.ts +5 -0
- package/types/logger.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
|
@@ -228,6 +228,82 @@ export function getAnsiColorFormatter(options = {}) {
|
|
|
228
228
|
* @since 0.5.0
|
|
229
229
|
*/
|
|
230
230
|
export const ansiColorFormatter = getAnsiColorFormatter();
|
|
231
|
+
/**
|
|
232
|
+
* Get a [JSON Lines] formatter with the specified options.
|
|
233
|
+
*
|
|
234
|
+
* [JSON Lines]: https://jsonlines.org/
|
|
235
|
+
* @param options The options for the JSON Lines formatter.
|
|
236
|
+
* @returns The JSON Lines formatter.
|
|
237
|
+
* @since 0.11.0
|
|
238
|
+
*/
|
|
239
|
+
export function getJsonLinesFormatter(options = {}) {
|
|
240
|
+
let joinCategory;
|
|
241
|
+
if (typeof options.categorySeparator === "function") {
|
|
242
|
+
joinCategory = options.categorySeparator;
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
const separator = options.categorySeparator ?? ".";
|
|
246
|
+
joinCategory = (category) => category.join(separator);
|
|
247
|
+
}
|
|
248
|
+
let getMessage;
|
|
249
|
+
if (options.message === "template") {
|
|
250
|
+
getMessage = (record) => {
|
|
251
|
+
if (typeof record.rawMessage === "string") {
|
|
252
|
+
return record.rawMessage;
|
|
253
|
+
}
|
|
254
|
+
let msg = "";
|
|
255
|
+
for (let i = 0; i < record.rawMessage.length; i++) {
|
|
256
|
+
msg += i % 2 < 1 ? record.rawMessage[i] : "{}";
|
|
257
|
+
}
|
|
258
|
+
return msg;
|
|
259
|
+
};
|
|
260
|
+
}
|
|
261
|
+
else {
|
|
262
|
+
getMessage = (record) => {
|
|
263
|
+
let msg = "";
|
|
264
|
+
for (let i = 0; i < record.message.length; i++) {
|
|
265
|
+
msg += i % 2 < 1
|
|
266
|
+
? record.message[i]
|
|
267
|
+
: JSON.stringify(record.message[i]);
|
|
268
|
+
}
|
|
269
|
+
return msg;
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
const propertiesOption = options.properties ?? "nest:properties";
|
|
273
|
+
let getProperties;
|
|
274
|
+
if (propertiesOption === "flatten") {
|
|
275
|
+
getProperties = (properties) => properties;
|
|
276
|
+
}
|
|
277
|
+
else if (propertiesOption.startsWith("prepend:")) {
|
|
278
|
+
const prefix = propertiesOption.substring(8);
|
|
279
|
+
if (prefix === "") {
|
|
280
|
+
throw new TypeError(`Invalid properties option: ${JSON.stringify(propertiesOption)}. It must be of the form "prepend:<prefix>" where <prefix> is a non-empty string.`);
|
|
281
|
+
}
|
|
282
|
+
getProperties = (properties) => {
|
|
283
|
+
const result = {};
|
|
284
|
+
for (const key in properties) {
|
|
285
|
+
result[`${prefix}${key}`] = properties[key];
|
|
286
|
+
}
|
|
287
|
+
return result;
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
else if (propertiesOption.startsWith("nest:")) {
|
|
291
|
+
const key = propertiesOption.substring(5);
|
|
292
|
+
getProperties = (properties) => ({ [key]: properties });
|
|
293
|
+
}
|
|
294
|
+
else {
|
|
295
|
+
throw new TypeError(`Invalid properties option: ${JSON.stringify(propertiesOption)}. It must be "flatten", "prepend:<prefix>", or "nest:<key>".`);
|
|
296
|
+
}
|
|
297
|
+
return (record) => {
|
|
298
|
+
return JSON.stringify({
|
|
299
|
+
"@timestamp": new Date(record.timestamp).toISOString(),
|
|
300
|
+
level: record.level === "warning" ? "WARN" : record.level.toUpperCase(),
|
|
301
|
+
message: getMessage(record),
|
|
302
|
+
logger: joinCategory(record.category),
|
|
303
|
+
...getProperties(record.properties),
|
|
304
|
+
});
|
|
305
|
+
};
|
|
306
|
+
}
|
|
231
307
|
/**
|
|
232
308
|
* The styles for the log level in the console.
|
|
233
309
|
*/
|
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, getTextFormatter, } from "./formatter.js";
|
|
4
|
+
export { ansiColorFormatter, defaultConsoleFormatter, defaultTextFormatter, getAnsiColorFormatter, getJsonLinesFormatter, getTextFormatter, } 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
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ansiColorFormatter = exports.defaultTextFormatter = void 0;
|
|
7
7
|
exports.getTextFormatter = getTextFormatter;
|
|
8
8
|
exports.getAnsiColorFormatter = getAnsiColorFormatter;
|
|
9
|
+
exports.getJsonLinesFormatter = getJsonLinesFormatter;
|
|
9
10
|
exports.defaultConsoleFormatter = defaultConsoleFormatter;
|
|
10
11
|
const nodeUtil_js_1 = __importDefault(require("./nodeUtil.js"));
|
|
11
12
|
/**
|
|
@@ -237,6 +238,82 @@ function getAnsiColorFormatter(options = {}) {
|
|
|
237
238
|
* @since 0.5.0
|
|
238
239
|
*/
|
|
239
240
|
exports.ansiColorFormatter = getAnsiColorFormatter();
|
|
241
|
+
/**
|
|
242
|
+
* Get a [JSON Lines] formatter with the specified options.
|
|
243
|
+
*
|
|
244
|
+
* [JSON Lines]: https://jsonlines.org/
|
|
245
|
+
* @param options The options for the JSON Lines formatter.
|
|
246
|
+
* @returns The JSON Lines formatter.
|
|
247
|
+
* @since 0.11.0
|
|
248
|
+
*/
|
|
249
|
+
function getJsonLinesFormatter(options = {}) {
|
|
250
|
+
let joinCategory;
|
|
251
|
+
if (typeof options.categorySeparator === "function") {
|
|
252
|
+
joinCategory = options.categorySeparator;
|
|
253
|
+
}
|
|
254
|
+
else {
|
|
255
|
+
const separator = options.categorySeparator ?? ".";
|
|
256
|
+
joinCategory = (category) => category.join(separator);
|
|
257
|
+
}
|
|
258
|
+
let getMessage;
|
|
259
|
+
if (options.message === "template") {
|
|
260
|
+
getMessage = (record) => {
|
|
261
|
+
if (typeof record.rawMessage === "string") {
|
|
262
|
+
return record.rawMessage;
|
|
263
|
+
}
|
|
264
|
+
let msg = "";
|
|
265
|
+
for (let i = 0; i < record.rawMessage.length; i++) {
|
|
266
|
+
msg += i % 2 < 1 ? record.rawMessage[i] : "{}";
|
|
267
|
+
}
|
|
268
|
+
return msg;
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
else {
|
|
272
|
+
getMessage = (record) => {
|
|
273
|
+
let msg = "";
|
|
274
|
+
for (let i = 0; i < record.message.length; i++) {
|
|
275
|
+
msg += i % 2 < 1
|
|
276
|
+
? record.message[i]
|
|
277
|
+
: JSON.stringify(record.message[i]);
|
|
278
|
+
}
|
|
279
|
+
return msg;
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
const propertiesOption = options.properties ?? "nest:properties";
|
|
283
|
+
let getProperties;
|
|
284
|
+
if (propertiesOption === "flatten") {
|
|
285
|
+
getProperties = (properties) => properties;
|
|
286
|
+
}
|
|
287
|
+
else if (propertiesOption.startsWith("prepend:")) {
|
|
288
|
+
const prefix = propertiesOption.substring(8);
|
|
289
|
+
if (prefix === "") {
|
|
290
|
+
throw new TypeError(`Invalid properties option: ${JSON.stringify(propertiesOption)}. It must be of the form "prepend:<prefix>" where <prefix> is a non-empty string.`);
|
|
291
|
+
}
|
|
292
|
+
getProperties = (properties) => {
|
|
293
|
+
const result = {};
|
|
294
|
+
for (const key in properties) {
|
|
295
|
+
result[`${prefix}${key}`] = properties[key];
|
|
296
|
+
}
|
|
297
|
+
return result;
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
else if (propertiesOption.startsWith("nest:")) {
|
|
301
|
+
const key = propertiesOption.substring(5);
|
|
302
|
+
getProperties = (properties) => ({ [key]: properties });
|
|
303
|
+
}
|
|
304
|
+
else {
|
|
305
|
+
throw new TypeError(`Invalid properties option: ${JSON.stringify(propertiesOption)}. It must be "flatten", "prepend:<prefix>", or "nest:<key>".`);
|
|
306
|
+
}
|
|
307
|
+
return (record) => {
|
|
308
|
+
return JSON.stringify({
|
|
309
|
+
"@timestamp": new Date(record.timestamp).toISOString(),
|
|
310
|
+
level: record.level === "warning" ? "WARN" : record.level.toUpperCase(),
|
|
311
|
+
message: getMessage(record),
|
|
312
|
+
logger: joinCategory(record.category),
|
|
313
|
+
...getProperties(record.properties),
|
|
314
|
+
});
|
|
315
|
+
};
|
|
316
|
+
}
|
|
240
317
|
/**
|
|
241
318
|
* The styles for the log level in the console.
|
|
242
319
|
*/
|
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.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.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; } });
|
|
@@ -20,6 +20,7 @@ Object.defineProperty(exports, "ansiColorFormatter", { enumerable: true, get: fu
|
|
|
20
20
|
Object.defineProperty(exports, "defaultConsoleFormatter", { enumerable: true, get: function () { return formatter_js_1.defaultConsoleFormatter; } });
|
|
21
21
|
Object.defineProperty(exports, "defaultTextFormatter", { enumerable: true, get: function () { return formatter_js_1.defaultTextFormatter; } });
|
|
22
22
|
Object.defineProperty(exports, "getAnsiColorFormatter", { enumerable: true, get: function () { return formatter_js_1.getAnsiColorFormatter; } });
|
|
23
|
+
Object.defineProperty(exports, "getJsonLinesFormatter", { enumerable: true, get: function () { return formatter_js_1.getJsonLinesFormatter; } });
|
|
23
24
|
Object.defineProperty(exports, "getTextFormatter", { enumerable: true, get: function () { return formatter_js_1.getTextFormatter; } });
|
|
24
25
|
var level_js_1 = require("./level.js");
|
|
25
26
|
Object.defineProperty(exports, "compareLogLevel", { enumerable: true, get: function () { return level_js_1.compareLogLevel; } });
|
package/types/formatter.d.ts
CHANGED
|
@@ -241,6 +241,53 @@ export declare function getAnsiColorFormatter(options?: AnsiColorFormatterOption
|
|
|
241
241
|
* @since 0.5.0
|
|
242
242
|
*/
|
|
243
243
|
export declare const ansiColorFormatter: TextFormatter;
|
|
244
|
+
/**
|
|
245
|
+
* Options for the {@link getJsonLinesFormatter} function.
|
|
246
|
+
* @since 0.11.0
|
|
247
|
+
*/
|
|
248
|
+
export interface JsonLinesFormatterOptions {
|
|
249
|
+
/**
|
|
250
|
+
* The separator between category names. For example, if the separator is
|
|
251
|
+
* `"."`, the category `["a", "b", "c"]` will be formatted as `"a.b.c"`.
|
|
252
|
+
* If this is a function, it will be called with the category array and
|
|
253
|
+
* should return a string or an array of strings, which will be used
|
|
254
|
+
* for rendering the category.
|
|
255
|
+
*
|
|
256
|
+
* @default `"."`
|
|
257
|
+
*/
|
|
258
|
+
readonly categorySeparator?: string | ((category: readonly string[]) => string | readonly string[]);
|
|
259
|
+
/**
|
|
260
|
+
* The message format. This can be one of the following:
|
|
261
|
+
*
|
|
262
|
+
* - `"template"`: The raw message template is used as the message.
|
|
263
|
+
* - `"rendered"`: The message is rendered with the values.
|
|
264
|
+
*
|
|
265
|
+
* @default `"rendered"`
|
|
266
|
+
*/
|
|
267
|
+
readonly message?: "template" | "rendered";
|
|
268
|
+
/**
|
|
269
|
+
* The properties format. This can be one of the following:
|
|
270
|
+
*
|
|
271
|
+
* - `"flatten"`: The properties are flattened into the root object.
|
|
272
|
+
* - `"prepend:<prefix>"`: The properties are prepended with the given prefix
|
|
273
|
+
* (e.g., `"prepend:ctx_"` will prepend `ctx_` to each property key).
|
|
274
|
+
* - `"nest:<key>"`: The properties are nested under the given key
|
|
275
|
+
* (e.g., `"nest:properties"` will nest the properties under the
|
|
276
|
+
* `properties` key).
|
|
277
|
+
*
|
|
278
|
+
* @default `"nest:properties"`
|
|
279
|
+
*/
|
|
280
|
+
readonly properties?: "flatten" | `prepend:${string}` | `nest:${string}`;
|
|
281
|
+
}
|
|
282
|
+
/**
|
|
283
|
+
* Get a [JSON Lines] formatter with the specified options.
|
|
284
|
+
*
|
|
285
|
+
* [JSON Lines]: https://jsonlines.org/
|
|
286
|
+
* @param options The options for the JSON Lines formatter.
|
|
287
|
+
* @returns The JSON Lines formatter.
|
|
288
|
+
* @since 0.11.0
|
|
289
|
+
*/
|
|
290
|
+
export declare function getJsonLinesFormatter(options?: JsonLinesFormatterOptions): TextFormatter;
|
|
244
291
|
/**
|
|
245
292
|
* A console formatter is a function that accepts a log record and returns
|
|
246
293
|
* 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;IAEpC;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,EACF,MAAM,GACN,MAAM,GACN,GAAG,GACH,MAAM,GACN,MAAM,GACN,GAAG,GACH,CAAC,CAAC,KAAK,EAAE,QAAQ,KAAK,MAAM,CAAC,CAAC;IAElC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC,CAA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CHANGED
|
@@ -135,6 +135,7 @@ export interface Logger {
|
|
|
135
135
|
*
|
|
136
136
|
* @param properties The values to log. Note that this does not take
|
|
137
137
|
* a callback.
|
|
138
|
+
* @since 0.11.0
|
|
138
139
|
*/
|
|
139
140
|
debug(properties: Record<string, unknown>): void;
|
|
140
141
|
/**
|
|
@@ -212,6 +213,7 @@ export interface Logger {
|
|
|
212
213
|
*
|
|
213
214
|
* @param properties The values to log. Note that this does not take
|
|
214
215
|
* a callback.
|
|
216
|
+
* @since 0.11.0
|
|
215
217
|
*/
|
|
216
218
|
info(properties: Record<string, unknown>): void;
|
|
217
219
|
/**
|
|
@@ -290,6 +292,7 @@ export interface Logger {
|
|
|
290
292
|
*
|
|
291
293
|
* @param properties The values to log. Note that this does not take
|
|
292
294
|
* a callback.
|
|
295
|
+
* @since 0.11.0
|
|
293
296
|
*/
|
|
294
297
|
warn(properties: Record<string, unknown>): void;
|
|
295
298
|
/**
|
|
@@ -368,6 +371,7 @@ export interface Logger {
|
|
|
368
371
|
*
|
|
369
372
|
* @param properties The values to log. Note that this does not take
|
|
370
373
|
* a callback.
|
|
374
|
+
* @since 0.11.0
|
|
371
375
|
*/
|
|
372
376
|
error(properties: Record<string, unknown>): void;
|
|
373
377
|
/**
|
|
@@ -446,6 +450,7 @@ export interface Logger {
|
|
|
446
450
|
*
|
|
447
451
|
* @param properties The values to log. Note that this does not take
|
|
448
452
|
* a callback.
|
|
453
|
+
* @since 0.11.0
|
|
449
454
|
*/
|
|
450
455
|
fatal(properties: Record<string, unknown>): void;
|
|
451
456
|
/**
|
package/types/logger.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../src/logger.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAmB,KAAK,QAA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,EAAE,GACnB,IAAI;IAgBP,KAAK,CACH,OAAO,EACH,oBAAoB,GACpB,MAAM,GACN,WAAW,GACX,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3B,GAAG,MAAM,EAAE,OAAO,EAAE,GACnB,IAAI;IAYP,KAAK,CACH,OAAO,EACH,oBAAoB,GACpB,MAAM,GACN,WAAW,GACX,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3B,GAAG,MAAM,EAAE,OAAO,EAAE,GACnB,IAAI;CAWR;AAOD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAClC,SAAS,OAAO,EAAE,CA0CpB;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,oBAAoB,EAC9B,MAAM,EAAE,SAAS,OAAO,EAAE,GACzB,OAAO,EAAE,CAOX"}
|
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, getTextFormatter, 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, 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,gBAAgB,EAChB,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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