@likec4/log 1.26.2 → 1.29.0
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/index.d.mts +2 -3
- package/dist/index.mjs +14 -51
- package/package.json +12 -12
- package/src/index.ts +3 -10
- package/dist/index.cjs +0 -1485
- package/dist/index.d.cts +0 -24
- package/dist/index.d.ts +0 -24
package/dist/index.d.cts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as _logtape_logtape from '@logtape/logtape';
|
|
2
|
-
import { LogRecord, AnsiColorFormatterOptions, TextFormatter, ConsoleSinkOptions, Sink, TextFormatterOptions, Config } from '@logtape/logtape';
|
|
3
|
-
export { Filter, LogLevel, LogRecord, Logger, Sink, TextFormatter, withFilter } from '@logtape/logtape';
|
|
4
|
-
|
|
5
|
-
declare function errorFromLogRecord(record: LogRecord): Error | null;
|
|
6
|
-
declare function getMessageOnlyFormatter(): TextFormatter;
|
|
7
|
-
declare function getTextFormatter(options?: TextFormatterOptions): TextFormatter;
|
|
8
|
-
declare function getAnsiColorFormatter(options?: AnsiColorFormatterOptions): TextFormatter;
|
|
9
|
-
declare function getConsoleSink(options?: ConsoleSinkOptions): Sink;
|
|
10
|
-
|
|
11
|
-
declare function loggable(error: unknown): string;
|
|
12
|
-
|
|
13
|
-
declare const logger: _logtape_logtape.Logger;
|
|
14
|
-
/**
|
|
15
|
-
* Get a child logger with the given subcategory.
|
|
16
|
-
*
|
|
17
|
-
* @param subcategory The subcategory.
|
|
18
|
-
* @returns The child logger.
|
|
19
|
-
*/
|
|
20
|
-
declare function createLogger(subcategory: string | readonly [string] | readonly [string, ...string[]]): _logtape_logtape.Logger;
|
|
21
|
-
declare function configureLogger<TSinkId extends string, TFilterId extends string>(config?: Config<TSinkId, TFilterId>): Promise<void>;
|
|
22
|
-
declare function ensureLoggerIsConfigured(): void;
|
|
23
|
-
|
|
24
|
-
export { configureLogger, logger as consola, createLogger, ensureLoggerIsConfigured, errorFromLogRecord, getAnsiColorFormatter, getConsoleSink, getMessageOnlyFormatter, getTextFormatter, loggable, logger, logger as rootLogger };
|
package/dist/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as _logtape_logtape from '@logtape/logtape';
|
|
2
|
-
import { LogRecord, AnsiColorFormatterOptions, TextFormatter, ConsoleSinkOptions, Sink, TextFormatterOptions, Config } from '@logtape/logtape';
|
|
3
|
-
export { Filter, LogLevel, LogRecord, Logger, Sink, TextFormatter, withFilter } from '@logtape/logtape';
|
|
4
|
-
|
|
5
|
-
declare function errorFromLogRecord(record: LogRecord): Error | null;
|
|
6
|
-
declare function getMessageOnlyFormatter(): TextFormatter;
|
|
7
|
-
declare function getTextFormatter(options?: TextFormatterOptions): TextFormatter;
|
|
8
|
-
declare function getAnsiColorFormatter(options?: AnsiColorFormatterOptions): TextFormatter;
|
|
9
|
-
declare function getConsoleSink(options?: ConsoleSinkOptions): Sink;
|
|
10
|
-
|
|
11
|
-
declare function loggable(error: unknown): string;
|
|
12
|
-
|
|
13
|
-
declare const logger: _logtape_logtape.Logger;
|
|
14
|
-
/**
|
|
15
|
-
* Get a child logger with the given subcategory.
|
|
16
|
-
*
|
|
17
|
-
* @param subcategory The subcategory.
|
|
18
|
-
* @returns The child logger.
|
|
19
|
-
*/
|
|
20
|
-
declare function createLogger(subcategory: string | readonly [string] | readonly [string, ...string[]]): _logtape_logtape.Logger;
|
|
21
|
-
declare function configureLogger<TSinkId extends string, TFilterId extends string>(config?: Config<TSinkId, TFilterId>): Promise<void>;
|
|
22
|
-
declare function ensureLoggerIsConfigured(): void;
|
|
23
|
-
|
|
24
|
-
export { configureLogger, logger as consola, createLogger, ensureLoggerIsConfigured, errorFromLogRecord, getAnsiColorFormatter, getConsoleSink, getMessageOnlyFormatter, getTextFormatter, loggable, logger, logger as rootLogger };
|