@flighthq/log 0.5.1-next.920.da8f530 → 0.7.0-edge.5213.ead804b

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 CHANGED
@@ -13,5 +13,5 @@ Import the supported application-facing API from `@flighthq/log`. The `@flighthq
13
13
  This package is part of the locked-version Flight SDK graph. Applications may instead install and import `@flighthq/sdk` when package-level tree shaking is sufficient.
14
14
 
15
15
  - [Flight project](https://github.com/flighthq/flight)
16
- - [Source for @flighthq/log@0.5.1-next.920.da8f530](https://github.com/flighthq/flight/tree/da8f530894916f9baa6a9f6822b4f393b9e70a85/packages/log)
17
- - [License](https://github.com/flighthq/flight/blob/da8f530894916f9baa6a9f6822b4f393b9e70a85/LICENSE.md)
16
+ - [Source for @flighthq/log@0.7.0-edge.5213.ead804b](https://github.com/flighthq/flight/tree/ead804bfaef3e691a2e6e43e9711ddd3fd8a84a2/packages/log)
17
+ - [License](https://github.com/flighthq/flight/blob/ead804bfaef3e691a2e6e43e9711ddd3fd8a84a2/LICENSE.md)
@@ -0,0 +1,8 @@
1
+ import type { LogState } from './log.ts';
2
+ import type { LogFormatter, LogSink } from './types.ts';
3
+ export interface ConsoleLogSinkOptions {
4
+ formatter?: LogFormatter;
5
+ }
6
+ export declare function createConsoleCaptureSink(state: Readonly<LogState>, options?: Readonly<ConsoleLogSinkOptions>): LogSink;
7
+ export declare function createConsoleLogSink(state: Readonly<LogState>, options?: Readonly<ConsoleLogSinkOptions>): LogSink;
8
+ //# sourceMappingURL=consoleLogSink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consoleLogSink.d.ts","sourceRoot":"","sources":["../src/consoleLogSink.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,KAAK,EAAY,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAQlE,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B;AAOD,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,EACzB,OAAO,CAAC,EAAE,QAAQ,CAAC,qBAAqB,CAAC,GACxC,OAAO,CAGT;AAMD,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,EAAE,QAAQ,CAAC,qBAAqB,CAAC,GAAG,OAAO,CAGlH"}
@@ -0,0 +1,62 @@
1
+ import { createTextLogFormatter, getLogLevelName } from './log.js';
2
+ import { LogLevel } from './types.js';
3
+ // Creates a sink that records every entry as a tagged JSON envelope on console.debug — low
4
+ // visual noise, but the Playwright capture script reads every console level, so it always
5
+ // lands in logs.jsonl. Entries at or above `state`'s console threshold (setLogConsoleLevel) are
6
+ // ALSO printed as a human-readable line via the matching console method. Install with addLogSink
7
+ // or setLogSink.
8
+ export function createConsoleCaptureSink(state, options) {
9
+ const envelopeFormatter = options?.formatter ?? _defaultEnvelopeFormatter;
10
+ return (entry) => _writeConsoleCaptureEntry(state, entry, envelopeFormatter);
11
+ }
12
+ // Creates a sink that writes each entry, formatted, to the console method matching its level: Error
13
+ // to `error`, Warn to `warn`, Info to `info`, Debug to `debug`, and None and Verbose to `log`. The
14
+ // default formatter is the level-prefixed text formatter over `state`. There is no console-level
15
+ // threshold here; that belongs to the capture sink.
16
+ export function createConsoleLogSink(state, options) {
17
+ const formatter = options?.formatter ?? createTextLogFormatter(state, { levelPrefix: true });
18
+ return (entry) => _writeConsoleLogEntry(entry, formatter);
19
+ }
20
+ const _consoleMethods = {
21
+ [LogLevel.None]: 'log',
22
+ [LogLevel.Error]: 'error',
23
+ [LogLevel.Warn]: 'warn',
24
+ [LogLevel.Info]: 'info',
25
+ [LogLevel.Debug]: 'debug',
26
+ [LogLevel.Verbose]: 'log',
27
+ };
28
+ const _defaultEnvelopeFormatter = (entry) => {
29
+ const { level, channel, data } = entry;
30
+ return JSON.stringify({
31
+ __flight: true,
32
+ t: entry.timestampMs,
33
+ level: getLogLevelName(level),
34
+ channel,
35
+ data: typeof data === 'string' ? { msg: data } : data,
36
+ });
37
+ };
38
+ /* eslint-disable no-console -- these are the console sinks; writing to the console is their job */
39
+ function _writeConsoleCaptureEntry(state, entry, envelopeFormatter) {
40
+ if (typeof console === 'undefined')
41
+ return;
42
+ const { level, channel } = entry;
43
+ // The capture record: every level, as a tagged JSON line the collector parses.
44
+ console.debug(envelopeFormatter(entry));
45
+ // The human-readable subset.
46
+ if (level !== LogLevel.None && state.consoleLevel >= level) {
47
+ const method = _consoleMethods[level];
48
+ const prefix = channel !== null ? `[${channel}]` : '[flight]';
49
+ const { data } = entry;
50
+ if (typeof data === 'string')
51
+ console[method](`${prefix} ${data}`);
52
+ else
53
+ console[method](prefix, data);
54
+ }
55
+ }
56
+ function _writeConsoleLogEntry(entry, formatter) {
57
+ if (typeof console === 'undefined')
58
+ return;
59
+ console[_consoleMethods[entry.level]](formatter(entry));
60
+ }
61
+ /* eslint-enable no-console */
62
+ //# sourceMappingURL=consoleLogSink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consoleLogSink.js","sourceRoot":"","sources":["../src/consoleLogSink.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEnE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAWtC,2FAA2F;AAC3F,0FAA0F;AAC1F,gGAAgG;AAChG,iGAAiG;AACjG,iBAAiB;AACjB,MAAM,UAAU,wBAAwB,CACtC,KAAyB,EACzB,OAAyC;IAEzC,MAAM,iBAAiB,GAAG,OAAO,EAAE,SAAS,IAAI,yBAAyB,CAAC;IAC1E,OAAO,CAAC,KAAyB,EAAQ,EAAE,CAAC,yBAAyB,CAAC,KAAK,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC;AACzG,CAAC;AAED,oGAAoG;AACpG,mGAAmG;A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G,KAAK,CAAC;IACjC,+EAA+E;IAC/E,OAAO,CAAC,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC;IACxC,6BAA6B;IAC7B,IAAI,KAAK,KAAK,QAAQ,CAAC,IAAI,IAAI,KAAK,CAAC,YAAY,IAAI,KAAK,EAAE,CAAC;QAC3D,MAAM,MAAM,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;QACtC,MAAM,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,OAAO,GAAG,CAAC,CAAC,CAAC,UAAU,CAAC;QAC9D,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;QACvB,IAAI,OAAO,IAAI,KAAK,QAAQ;YAAE,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,MAAM,IAAI,IAAI,EAAE,CAAC,CAAC;;YAC9D,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACrC,CAAC;AACH,CAAC;AAED,SAAS,qBAAqB,CAAC,KAAyB,EAAE,SAAuB;IAC/E,IAAI,OAAO,OAAO,KAAK,WAAW;QAAE,OAAO;IAC3C,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;AAC1D,CAAC;AACD,8BAA8B"}
@@ -1,2 +1,5 @@
1
- export * from './log';
1
+ export * from './consoleLogSink.ts';
2
+ export * from './fileLogSink.ts';
3
+ export * from './log.ts';
4
+ export * from './types.ts';
2
5
  //# sourceMappingURL=contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
package/dist/contract.js CHANGED
@@ -1,2 +1,5 @@
1
- export * from './log';
1
+ export * from './consoleLogSink.js';
2
+ export * from './fileLogSink.js';
3
+ export * from './log.js';
4
+ export * from './types.js';
2
5
  //# sourceMappingURL=contract.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
1
+ {"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { LogState } from './log.ts';
2
+ import type { FileLogSink, FileLogSinkDestroyOutcome, LogFormatter, LogTransport } from './types.ts';
3
+ export interface FileLogSinkOptions {
4
+ formatter?: LogFormatter;
5
+ }
6
+ export declare function createFileLogSink(state: Readonly<LogState>, transport: LogTransport, options?: Readonly<FileLogSinkOptions>): FileLogSink;
7
+ export declare function destroyFileLogSink(state: LogState, handle: FileLogSink): Promise<FileLogSinkDestroyOutcome>;
8
+ //# sourceMappingURL=fileLogSink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileLogSink.d.ts","sourceRoot":"","sources":["../src/fileLogSink.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,KAAK,EACV,WAAW,EACX,yBAAyB,EAEzB,YAAY,EAEZ,YAAY,EAGb,MAAM,YAAY,CAAC;AAMpB,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,YAAY,CAAC;CAC1B;AAMD,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,EACzB,SAAS,EAAE,YAAY,EACvB,OAAO,CAAC,EAAE,QAAQ,CAAC,kBAAkB,CAAC,GACrC,WAAW,CAcb;AAMD,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAYjH"}
@@ -0,0 +1,69 @@
1
+ import { EntityRuntimeKey } from '@flighthq/entity/contract';
2
+ import { createJsonLogFormatter, removeLogSink } from './log.js';
3
+ // Creates an Entity sink that exclusively owns the configured transport for its entire lifetime.
4
+ // The formatter defaults to createJsonLogFormatter over `state` (one complete JSON line per entry).
5
+ // Each sink call offers that line synchronously to the pinned transport; admission and later
6
+ // delivery remain the transport's explicit outcome contracts.
7
+ export function createFileLogSink(state, transport, options) {
8
+ const formatter = options?.formatter ?? createJsonLogFormatter(state);
9
+ const sink = (entry) => {
10
+ const sinkState = _fileLogSinkStates.get(handle);
11
+ if (!sinkState || sinkState.status !== 'active' || sinkState.transport === null)
12
+ return;
13
+ sinkState.transport.write(formatter(entry) + '\n');
14
+ };
15
+ const handle = { [EntityRuntimeKey]: undefined, sink };
16
+ _fileLogSinkStates.set(handle, {
17
+ destroyPromise: null,
18
+ status: 'active',
19
+ transport,
20
+ });
21
+ return handle;
22
+ }
23
+ // Makes the sink terminal and unregisters it from `state` synchronously, then awaits its delivery
24
+ // boundary before attempting terminal transport teardown. Destroy is attempted even when flush fails
25
+ // or rejects, and both operation outcomes are preserved. Repeated calls await the same teardown
26
+ // without invoking the provider again.
27
+ export async function destroyFileLogSink(state, handle) {
28
+ const sinkState = _fileLogSinkStates.get(handle);
29
+ if (!sinkState)
30
+ throw new Error('destroyFileLogSink received an unknown handle');
31
+ if (sinkState.status !== 'active') {
32
+ const outcome = await sinkState.destroyPromise;
33
+ return { ...outcome, reason: 'already-destroyed' };
34
+ }
35
+ sinkState.status = 'destroying';
36
+ removeLogSink(state, handle.sink);
37
+ sinkState.destroyPromise = _destroyFileLogSinkState(sinkState);
38
+ return sinkState.destroyPromise;
39
+ }
40
+ // Per-handle private sink state, keyed by the handle so it is collected with it.
41
+ const _fileLogSinkStates = new WeakMap();
42
+ async function _destroyFileLogSinkState(state) {
43
+ const transport = state.transport;
44
+ let flush;
45
+ let destroy;
46
+ try {
47
+ flush = await transport.flush();
48
+ }
49
+ catch (error) {
50
+ flush = { message: _operationFailureMessage(error), reason: 'operation-failed' };
51
+ }
52
+ try {
53
+ destroy = await transport.destroy();
54
+ }
55
+ catch (error) {
56
+ destroy = { message: _operationFailureMessage(error), reason: 'operation-failed' };
57
+ }
58
+ state.transport = null;
59
+ state.status = 'destroyed';
60
+ return {
61
+ destroy,
62
+ flush,
63
+ reason: flush.reason === 'operation-failed' || destroy.reason === 'operation-failed' ? 'operation-failed' : 'destroyed',
64
+ };
65
+ }
66
+ function _operationFailureMessage(error) {
67
+ return error instanceof Error ? error.message : String(error);
68
+ }
69
+ //# sourceMappingURL=fileLogSink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileLogSink.js","sourceRoot":"","sources":["../src/fileLogSink.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAG7D,OAAO,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAoBjE,iGAAiG;AACjG,oGAAoG;AACpG,6FAA6F;AAC7F,8DAA8D;AAC9D,MAAM,UAAU,iBAAiB,CAC/B,KAAyB,EACzB,SAAuB,EACvB,OAAsC;IAEtC,MAAM,SAAS,GAAG,OAAO,EAAE,SAAS,IAAI,sBAAsB,CAAC,KAAK,CAAC,CAAC;IACtE,MAAM,IAAI,GAAY,CAAC,KAAyB,EAAQ,EAAE;QACxD,MAAM,SAAS,GAAG,kBAAkB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACjD,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,KAAK,QAAQ,IAAI,SAAS,CAAC,SAAS,KAAK,IAAI;YAAE,OAAO;QACxF,SAAS,CAAC,SAAS,CAAC,KAAK,C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AAS,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,KAAK,GAAG,EAAE,OAAO,EAAE,wBAAwB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC;IACnF,CAAC;IAED,IAAI,CAAC;QACH,OAAO,GAAG,MAAM,SAAS,CAAC,OAAO,EAAE,CAAC;IACtC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,GAAG,EAAE,OAAO,EAAE,wBAAwB,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,kBAAkB,EAAE,CAAC;IACrF,CAAC;IAED,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IACvB,KAAK,CAAC,MAAM,GAAG,WAAW,CAAC;IAC3B,OAAO;QACL,OAAO;QACP,KAAK;QACL,MAAM,EACJ,KAAK,CAAC,MAAM,KAAK,kBAAkB,IAAI,OAAO,CAAC,MAAM,KAAK,kBAAkB,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,WAAW;KAClH,CAAC;AACJ,CAAC;AAED,SAAS,wBAAwB,CAAC,KAAc;IAC9C,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
- export { addLogSink, beginLogGroup, clearLogChannelLevel, clearLogChannelLevels, clearLogGroups, clearLogOnceKeys, clearLogRedactionPaths, clearLogSerializers, clearLogSinks, clearMemoryLogSink, createBufferedLogSink, createChildLogContext, createConsoleCaptureSink, createConsoleLogSink, createFanoutLogSink, createFileLogSink, createFilterLogSink, createJsonLogFormatter, createLogContext, createLogSpan, createMemoryLogSink, createRateLimitedLogSink, createSampledLogSink, createTextLogFormatter, destroyFileLogSink, disposeLogSink, enableLogSignals, endLogGroup, endLogTimer, enterLogSpan, exitLogSpan, flushLogSink, getLogChannelLevel, getLogConsoleLevel, getLogLevel, getLogLevelName, getMemoryLogSinkEntries, log, logAssert, logDebug, logDebugWith, logError, logErrorWith, logInfo, logInfoWith, logOnce, logVerbose, logVerboseWith, logWarn, logWarnWith, logWith, parseLogLevel, registerLogSerializer, removeLogSink, serializeLogError, setLogChannelLevel, setLogConsoleLevel, setLogLevel, setLogRedactionPaths, setLogSink, startLogTimer, } from './contract';
1
+ export { addLogSink, advanceLogSink, beginLogGroup, clearLogChannelLevel, clearLogChannelLevels, clearLogGroups, clearLogOnceKeys, clearLogRedactionPaths, clearLogSerializers, clearLogSinks, clearMemoryLogSink, createBufferedLogSink, createChildLogContext, createConsoleCaptureSink, createConsoleLogSink, createFanoutLogSink, createFileLogSink, createFilterLogSink, createJsonLogFormatter, createLogContext, createLogSpan, createLogState, createMemoryLogSink, createRateLimitedLogSink, createSampledLogSink, createTextLogFormatter, destroyFileLogSink, disposeLogSink, enableLogSignals, endLogGroup, endLogTimer, enterLogSpan, exitLogSpan, flushLogSink, getLogChannelLevel, getLogConsoleLevel, getLogLevel, getLogLevelName, getMemoryLogSinkEntries, log, logAssert, logDebug, logDebugWith, logError, logErrorWith, logInfo, logInfoWith, logOnce, logVerbose, logVerboseWith, logWarn, logWarnWith, logWith, parseLogLevel, registerLogSerializer, removeLogSink, serializeLogError, setLogChannelLevel, setLogConsoleLevel, setLogLevel, setLogRedactionPaths, setLogSink, startLogTimer, } from './contract.ts';
2
+ export type { BufferedLogSinkOptions, ConsoleLogSinkOptions, FileLogSinkOptions, LogDataOrProvider, LogPredicate, LogSerializer, LogState, RateLimitedLogSinkOptions, TextLogFormatterOptions, } from './contract.ts';
3
+ export type { BufferedLogSink, FileLogSink, FileLogSinkDestroyOutcome, LogContext, LogData, LogDataProvider, LogEntry, LogFormatter, LogSignals, LogSink, LogSpan, LogTimer, LogTransport, LogTransportDeliveryBoundary, LogTransportDestroyOutcome, LogTransportFlushOutcome, LogTransportWriteOutcome, MemoryLogSink, RateLimitedLogSink, } from './contract.ts';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,aAAa,EACb,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,GAAG,EACH,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,WAAW,EACX,OAAO,EACP,UAAU,EACV,cAAc,EACd,OAAO,EACP,WAAW,EACX,OAAO,EACP,aAAa,EACb,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,oBAAoB,EACpB,UAAU,EACV,aAAa,GACd,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,GAAG,EACH,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,WAAW,EACX,OAAO,EACP,UAAU,EACV,cAAc,EACd,OAAO,EACP,WAAW,EACX,OAAO,EACP,aAAa,EACb,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,oBAAoB,EACpB,UAAU,EACV,aAAa,GACd,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,yBAAyB,EACzB,uBAAuB,GACxB,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,eAAe,EACf,WAAW,EACX,yBAAyB,EACzB,UAAU,EACV,OAAO,EACP,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,UAAU,EACV,OAAO,EACP,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,4BAA4B,EAC5B,0BAA0B,EAC1B,wBAAwB,EACxB,wBAAwB,EACxB,aAAa,EACb,kBAAkB,GACnB,MAAM,eAAe,CAAC"}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { addLogSink, beginLogGroup, clearLogChannelLevel, clearLogChannelLevels, clearLogGroups, clearLogOnceKeys, clearLogRedactionPaths, clearLogSerializers, clearLogSinks, clearMemoryLogSink, createBufferedLogSink, createChildLogContext, createConsoleCaptureSink, createConsoleLogSink, createFanoutLogSink, createFileLogSink, createFilterLogSink, createJsonLogFormatter, createLogContext, createLogSpan, createMemoryLogSink, createRateLimitedLogSink, createSampledLogSink, createTextLogFormatter, destroyFileLogSink, disposeLogSink, enableLogSignals, endLogGroup, endLogTimer, enterLogSpan, exitLogSpan, flushLogSink, getLogChannelLevel, getLogConsoleLevel, getLogLevel, getLogLevelName, getMemoryLogSinkEntries, log, logAssert, logDebug, logDebugWith, logError, logErrorWith, logInfo, logInfoWith, logOnce, logVerbose, logVerboseWith, logWarn, logWarnWith, logWith, parseLogLevel, registerLogSerializer, removeLogSink, serializeLogError, setLogChannelLevel, setLogConsoleLevel, setLogLevel, setLogRedactionPaths, setLogSink, startLogTimer, } from './contract';
1
+ export { addLogSink, advanceLogSink, beginLogGroup, clearLogChannelLevel, clearLogChannelLevels, clearLogGroups, clearLogOnceKeys, clearLogRedactionPaths, clearLogSerializers, clearLogSinks, clearMemoryLogSink, createBufferedLogSink, createChildLogContext, createConsoleCaptureSink, createConsoleLogSink, createFanoutLogSink, createFileLogSink, createFilterLogSink, createJsonLogFormatter, createLogContext, createLogSpan, createLogState, createMemoryLogSink, createRateLimitedLogSink, createSampledLogSink, createTextLogFormatter, destroyFileLogSink, disposeLogSink, enableLogSignals, endLogGroup, endLogTimer, enterLogSpan, exitLogSpan, flushLogSink, getLogChannelLevel, getLogConsoleLevel, getLogLevel, getLogLevelName, getMemoryLogSinkEntries, log, logAssert, logDebug, logDebugWith, logError, logErrorWith, logInfo, logInfoWith, logOnce, logVerbose, logVerboseWith, logWarn, logWarnWith, logWith, parseLogLevel, registerLogSerializer, removeLogSink, serializeLogError, setLogChannelLevel, setLogConsoleLevel, setLogLevel, setLogRedactionPaths, setLogSink, startLogTimer, } from './contract.js';
2
2
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,aAAa,EACb,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,aAAa,EACb,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,GAAG,EACH,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,WAAW,EACX,OAAO,EACP,UAAU,EACV,cAAc,EACd,OAAO,EACP,WAAW,EACX,OAAO,EACP,aAAa,EACb,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,oBAAoB,EACpB,UAAU,EACV,aAAa,GACd,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,cAAc,EACd,aAAa,EACb,oBAAoB,EACpB,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,uBAAuB,EACvB,GAAG,EACH,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,OAAO,EACP,WAAW,EACX,OAAO,EACP,UAAU,EACV,cAAc,EACd,OAAO,EACP,WAAW,EACX,OAAO,EACP,aAAa,EACb,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACX,oBAAoB,EACpB,UAAU,EACV,aAAa,GACd,MAAM,eAAe,CAAC"}
package/dist/log.d.ts CHANGED
@@ -1,81 +1,103 @@
1
- import type { BufferedLogSink, FileLogSink, FileLogSinkDestroyOutcome, LogContext, LogData, LogDataProvider, LogEntry, LogFormatter, LogSignals, LogSink, LogSpan, LogTimer, LogTransport, MemoryLogSink, RateLimitedLogSink } from '@flighthq/types/contract';
2
- import { LogLevel } from '@flighthq/types/contract';
3
- export declare function addLogSink(sink: LogSink): void;
4
- export declare function beginLogGroup(label: string, channel?: string | null): void;
5
- export declare function clearLogChannelLevel(channel: string): void;
6
- export declare function clearLogChannelLevels(): void;
7
- export declare function clearLogGroups(): void;
8
- export declare function clearLogOnceKeys(): void;
9
- export declare function clearLogRedactionPaths(): void;
10
- export declare function clearLogSerializers(): void;
11
- export declare function clearLogSinks(): void;
12
- export declare function clearMemoryLogSink(handle: MemoryLogSink): void;
13
- export declare function createBufferedLogSink(target: LogSink, options?: {
1
+ import type { EntityConstruction, EntityRaw, EntityRuntime } from '@flighthq/entity/contract';
2
+ import type { EntityRuntimeKey } from '@flighthq/entity/contract';
3
+ import type { BufferedLogSink, LogContext, LogData, LogDataProvider, LogEntry, LogFormatter, LogSignals, LogSink, LogSpan, LogTimer, MemoryLogSink, RateLimitedLogSink } from './types.ts';
4
+ import { LogLevel } from './types.ts';
5
+ export interface BufferedLogSinkOptions {
14
6
  size?: number;
15
7
  intervalMs?: number;
16
- }): BufferedLogSink;
17
- export declare function createChildLogContext(parent: Readonly<LogContext>, fields: Readonly<Record<string, unknown>>, channel?: string | null): LogContext;
18
- export declare function createConsoleCaptureSink(options?: {
19
- formatter?: LogFormatter;
20
- }): LogSink;
21
- export declare function createConsoleLogSink(options?: {
22
- formatter?: LogFormatter;
23
- }): LogSink;
24
- export declare function createFanoutLogSink(...sinks: LogSink[]): LogSink;
25
- export declare function createFileLogSink(transport: LogTransport, options?: {
26
- formatter?: LogFormatter;
27
- }): FileLogSink;
28
- export declare function createFilterLogSink(target: LogSink, predicate: (entry: Readonly<LogEntry>) => boolean): LogSink;
29
- export declare function createJsonLogFormatter(): LogFormatter;
30
- export declare function createLogContext(channel: string | null, fields?: Readonly<Record<string, unknown>>): LogContext;
31
- export declare function createLogSpan(name: string, fields?: Readonly<Record<string, unknown>>, channel?: string | null): LogSpan;
32
- export declare function createMemoryLogSink(capacity: number): MemoryLogSink;
33
- export declare function createRateLimitedLogSink(target: LogSink, options: {
8
+ }
9
+ export type LogDataOrProvider = LogData | LogDataProvider;
10
+ export type LogPredicate = (entry: Readonly<LogEntry>) => boolean;
11
+ export type LogSerializer = (value: Readonly<Record<string, unknown>>) => Record<string, unknown>;
12
+ export interface LogState extends EntityRaw {
13
+ [EntityRuntimeKey]: EntityRuntime | undefined;
14
+ sinks: LogSink[];
15
+ level: LogLevel;
16
+ consoleLevel: LogLevel;
17
+ channelLevels: Map<string, LogLevel>;
18
+ onceKeys: Set<string>;
19
+ redactionPaths: string[];
20
+ serializers: Map<string, LogSerializer>;
21
+ groupDepth: number;
22
+ spans: LogSpan[];
23
+ signals: LogSignals | null;
24
+ nextSpanId: number;
25
+ }
26
+ export type LogStateRaw = LogState;
27
+ export type LogStateRef = LogState;
28
+ export interface RateLimitedLogSinkOptions {
34
29
  perChannel?: boolean;
35
30
  maxPerInterval: number;
36
31
  intervalMs: number;
37
- }): RateLimitedLogSink;
38
- export declare function createSampledLogSink(target: LogSink, rate: number): LogSink;
39
- export declare function createTextLogFormatter(options?: {
32
+ }
33
+ export interface TextLogFormatterOptions {
40
34
  indentGroups?: boolean;
41
35
  levelPrefix?: boolean;
42
36
  timestamp?: boolean;
43
- }): LogFormatter;
44
- export declare function destroyFileLogSink(handle: FileLogSink): Promise<FileLogSinkDestroyOutcome>;
37
+ }
38
+ export declare function addLogSink(state: LogState, sink: LogSink): void;
39
+ export declare function advanceLogSink(handle: BufferedLogSink, nowMs: number): void;
40
+ export declare function beginLogGroup(state: LogState, nowMs: number, label: string, channel?: string | null): void;
41
+ export declare function clearLogChannelLevel(state: LogState, channel: string): void;
42
+ export declare function clearLogChannelLevels(state: LogState): void;
43
+ export declare function clearLogGroups(state: LogState): void;
44
+ export declare function clearLogOnceKeys(state: LogState): void;
45
+ export declare function clearLogRedactionPaths(state: LogState): void;
46
+ export declare function clearLogSerializers(state: LogState): void;
47
+ export declare function clearLogSinks(state: LogState): void;
48
+ export declare function clearMemoryLogSink(handle: MemoryLogSink): void;
49
+ export declare function createBufferedLogSink(target: LogSink, options?: Readonly<BufferedLogSinkOptions>): BufferedLogSink;
50
+ export declare function createChildLogContext(parent: Readonly<LogContext>, fields: Readonly<Record<string, unknown>>, channel?: string | null): LogContext;
51
+ export declare function createFanoutLogSink(sinks: readonly LogSink[]): LogSink;
52
+ export declare function createFilterLogSink(target: LogSink, predicate: LogPredicate): LogSink;
53
+ export declare function createJsonLogFormatter(state: Readonly<LogState>): LogFormatter;
54
+ export declare function createLogContext(): LogContext;
55
+ export declare function createLogSpan(state: LogState): LogSpan;
56
+ export declare function createLogState(): LogState;
57
+ export declare function createMemoryLogSink(capacity: number): MemoryLogSink;
58
+ export declare function createRateLimitedLogSink(target: LogSink, options: Readonly<RateLimitedLogSinkOptions>): RateLimitedLogSink;
59
+ export declare function createSampledLogSink(target: LogSink, rate: number): LogSink;
60
+ export declare function createTextLogFormatter(state: Readonly<LogState>, options?: Readonly<TextLogFormatterOptions>): LogFormatter;
45
61
  export declare function disposeLogSink(handle: BufferedLogSink): void;
46
- export declare function enableLogSignals(): LogSignals;
47
- export declare function endLogGroup(channel?: string | null): void;
48
- export declare function endLogTimer(timer: Readonly<LogTimer>): number;
49
- export declare function enterLogSpan(span: Readonly<LogSpan>): void;
50
- export declare function exitLogSpan(span: Readonly<LogSpan>): void;
62
+ export declare function enableLogSignals(state: LogState): LogSignals;
63
+ export declare function endLogGroup(state: LogState, nowMs: number, channel?: string | null): void;
64
+ export declare function endLogTimer(state: LogState, nowMs: number, timer: Readonly<LogTimer>): number;
65
+ export declare function enterLogSpan(state: LogState, span: Readonly<LogSpan>): void;
66
+ export declare function exitLogSpan(state: LogState, span: Readonly<LogSpan>): void;
51
67
  export declare function flushLogSink(handle: BufferedLogSink): void;
52
- export declare function getLogChannelLevel(channel: string): LogLevel | null;
53
- export declare function getLogConsoleLevel(): LogLevel;
54
- export declare function getLogLevel(): LogLevel;
68
+ export declare function getLogChannelLevel(state: Readonly<LogState>, channel: string): LogLevel | null;
69
+ export declare function getLogConsoleLevel(state: Readonly<LogState>): LogLevel;
70
+ export declare function getLogLevel(state: Readonly<LogState>): LogLevel;
55
71
  export declare function getLogLevelName(level: LogLevel): string;
56
- export declare function getMemoryLogSinkEntries(handle: MemoryLogSink): readonly LogEntry[];
57
- export declare function log(level: LogLevel, data: LogData | LogDataProvider, channel?: string | null): void;
58
- export declare function logAssert(condition: boolean, data: LogData | LogDataProvider, channel?: string | null): void;
59
- export declare function logDebug(data: LogData | LogDataProvider, channel?: string | null): void;
60
- export declare function logDebugWith(context: Readonly<LogContext>, data: LogData | LogDataProvider): void;
61
- export declare function logError(data: LogData | LogDataProvider, channel?: string | null): void;
62
- export declare function logErrorWith(context: Readonly<LogContext>, data: LogData | LogDataProvider): void;
63
- export declare function logInfo(data: LogData | LogDataProvider, channel?: string | null): void;
64
- export declare function logInfoWith(context: Readonly<LogContext>, data: LogData | LogDataProvider): void;
65
- export declare function logOnce(key: string, level: LogLevel, data: LogData | LogDataProvider, channel?: string | null): boolean;
66
- export declare function logVerbose(data: LogData | LogDataProvider, channel?: string | null): void;
67
- export declare function logVerboseWith(context: Readonly<LogContext>, data: LogData | LogDataProvider): void;
68
- export declare function logWarn(data: LogData | LogDataProvider, channel?: string | null): void;
69
- export declare function logWarnWith(context: Readonly<LogContext>, data: LogData | LogDataProvider): void;
70
- export declare function logWith(context: Readonly<LogContext>, level: LogLevel, data: LogData | LogDataProvider): void;
72
+ export declare function getMemoryLogSinkEntries(out: LogEntry[], handle: Readonly<MemoryLogSink>): void;
73
+ export declare function initializeBufferedLogSink(out: EntityConstruction<BufferedLogSink>, target: LogSink, options?: Readonly<BufferedLogSinkOptions>): void;
74
+ export declare function initializeLogContext(out: EntityConstruction<LogContext>): void;
75
+ export declare function initializeLogSpan(out: EntityConstruction<LogSpan>, state: LogState): void;
76
+ export declare function initializeLogState(out: EntityConstruction<LogState>): void;
77
+ export declare function initializeMemoryLogSink(out: EntityConstruction<MemoryLogSink>, capacity: number): void;
78
+ export declare function initializeRateLimitedLogSink(out: EntityConstruction<RateLimitedLogSink>, target: LogSink, options: Readonly<RateLimitedLogSinkOptions>): void;
79
+ export declare function log(state: LogState, nowMs: number, level: LogLevel, data: LogDataOrProvider, channel?: string | null): void;
80
+ export declare function logAssert(state: LogState, nowMs: number, condition: boolean, data: LogDataOrProvider, channel?: string | null): void;
81
+ export declare function logDebug(state: LogState, nowMs: number, data: LogDataOrProvider, channel?: string | null): void;
82
+ export declare function logDebugWith(state: LogState, nowMs: number, context: Readonly<LogContext>, data: LogDataOrProvider): void;
83
+ export declare function logError(state: LogState, nowMs: number, data: LogDataOrProvider, channel?: string | null): void;
84
+ export declare function logErrorWith(state: LogState, nowMs: number, context: Readonly<LogContext>, data: LogDataOrProvider): void;
85
+ export declare function logInfo(state: LogState, nowMs: number, data: LogDataOrProvider, channel?: string | null): void;
86
+ export declare function logInfoWith(state: LogState, nowMs: number, context: Readonly<LogContext>, data: LogDataOrProvider): void;
87
+ export declare function logOnce(state: LogState, nowMs: number, key: string, level: LogLevel, data: LogDataOrProvider, channel?: string | null): boolean;
88
+ export declare function logVerbose(state: LogState, nowMs: number, data: LogDataOrProvider, channel?: string | null): void;
89
+ export declare function logVerboseWith(state: LogState, nowMs: number, context: Readonly<LogContext>, data: LogDataOrProvider): void;
90
+ export declare function logWarn(state: LogState, nowMs: number, data: LogDataOrProvider, channel?: string | null): void;
91
+ export declare function logWarnWith(state: LogState, nowMs: number, context: Readonly<LogContext>, data: LogDataOrProvider): void;
92
+ export declare function logWith(state: LogState, nowMs: number, context: Readonly<LogContext>, level: LogLevel, data: LogDataOrProvider): void;
71
93
  export declare function parseLogLevel(name: string): LogLevel | null;
72
- export declare function registerLogSerializer(kind: string, fn: (value: unknown) => Record<string, unknown>): void;
73
- export declare function removeLogSink(sink: LogSink): boolean;
94
+ export declare function registerLogSerializer(state: LogState, kind: string, serializer: LogSerializer): void;
95
+ export declare function removeLogSink(state: LogState, sink: LogSink): boolean;
74
96
  export declare function serializeLogError(value: unknown): Record<string, unknown>;
75
- export declare function setLogChannelLevel(channel: string, level: LogLevel): void;
76
- export declare function setLogConsoleLevel(level: LogLevel): void;
77
- export declare function setLogLevel(level: LogLevel): void;
78
- export declare function setLogRedactionPaths(paths: readonly string[]): void;
79
- export declare function setLogSink(sink: LogSink | null): void;
80
- export declare function startLogTimer(label: string, channel?: string | null): LogTimer;
97
+ export declare function setLogChannelLevel(state: LogState, channel: string, level: LogLevel): void;
98
+ export declare function setLogConsoleLevel(state: LogState, level: LogLevel): void;
99
+ export declare function setLogLevel(state: LogState, level: LogLevel): void;
100
+ export declare function setLogRedactionPaths(state: LogState, paths: readonly string[]): void;
101
+ export declare function setLogSink(state: LogState, sink: LogSink | null): void;
102
+ export declare function startLogTimer(label: string, channel: string | null, nowMs: number): LogTimer;
81
103
  //# sourceMappingURL=log.d.ts.map
package/dist/log.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"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