@logtape/logtape 1.1.4 → 1.1.6

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/src/mod.ts DELETED
@@ -1,59 +0,0 @@
1
- export {
2
- type Config,
3
- ConfigError,
4
- configure,
5
- configureSync,
6
- dispose,
7
- disposeSync,
8
- getConfig,
9
- type LoggerConfig,
10
- reset,
11
- resetSync,
12
- } from "./config.ts";
13
- export { type ContextLocalStorage, withContext } from "./context.ts";
14
- export {
15
- type Filter,
16
- type FilterLike,
17
- getLevelFilter,
18
- toFilter,
19
- } from "./filter.ts";
20
- export {
21
- type AnsiColor,
22
- ansiColorFormatter,
23
- type AnsiColorFormatterOptions,
24
- type AnsiStyle,
25
- type ConsoleFormatter,
26
- defaultConsoleFormatter,
27
- defaultTextFormatter,
28
- type FormattedValues,
29
- getAnsiColorFormatter,
30
- getJsonLinesFormatter,
31
- getTextFormatter,
32
- jsonLinesFormatter,
33
- type JsonLinesFormatterOptions,
34
- type TextFormatter,
35
- type TextFormatterOptions,
36
- } from "./formatter.ts";
37
- export {
38
- compareLogLevel,
39
- getLogLevels,
40
- isLogLevel,
41
- type LogLevel,
42
- parseLogLevel,
43
- } from "./level.ts";
44
- export { getLogger, type Logger, type LogMethod } from "./logger.ts";
45
- export type { LogRecord } from "./record.ts";
46
- export {
47
- type AsyncSink,
48
- type ConsoleSinkOptions,
49
- fingersCrossed,
50
- type FingersCrossedOptions,
51
- fromAsyncSink,
52
- getConsoleSink,
53
- getStreamSink,
54
- type Sink,
55
- type StreamSinkOptions,
56
- withFilter,
57
- } from "./sink.ts";
58
-
59
- // cSpell: ignore filesink
package/src/record.ts DELETED
@@ -1,49 +0,0 @@
1
- import type { LogLevel } from "./level.ts";
2
-
3
- /**
4
- * A log record.
5
- */
6
- export interface LogRecord {
7
- /**
8
- * The category of the logger that produced the log record.
9
- */
10
- readonly category: readonly string[];
11
-
12
- /**
13
- * The log level.
14
- */
15
- readonly level: LogLevel;
16
-
17
- /**
18
- * The log message. This is the result of substituting the message template
19
- * with the values. The number of elements in this array is always odd,
20
- * with the message template values interleaved between the substitution
21
- * values.
22
- */
23
- readonly message: readonly unknown[];
24
-
25
- /**
26
- * The raw log message. This is the original message template without any
27
- * further processing. It can be either:
28
- *
29
- * - A string without any substitutions if the log record was created with
30
- * a method call syntax, e.g., "Hello, {name}!" for
31
- * `logger.info("Hello, {name}!", { name })`.
32
- * - A template string array if the log record was created with a tagged
33
- * template literal syntax, e.g., `["Hello, ", "!"]` for
34
- * ``logger.info`Hello, ${name}!```.
35
- *
36
- * @since 0.6.0
37
- */
38
- readonly rawMessage: string | TemplateStringsArray;
39
-
40
- /**
41
- * The timestamp of the log record in milliseconds since the Unix epoch.
42
- */
43
- readonly timestamp: number;
44
-
45
- /**
46
- * The extra properties of the log record.
47
- */
48
- readonly properties: Record<string, unknown>;
49
- }