@optique/logtape 1.2.0-dev.2180 → 1.2.0-dev.2187
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.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Config, LogLevel, LogLevel as LogLevel$1, LogRecord, Sink, Sink as Sink$1 } from "@logtape/logtape";
|
|
2
2
|
import { NonEmptyString, ValueParser } from "@optique/core/valueparser";
|
|
3
3
|
import { Message } from "@optique/core/message";
|
|
4
|
-
import {
|
|
4
|
+
import { FluentParser } from "@optique/core/fluent";
|
|
5
5
|
|
|
6
6
|
//#region src/loglevel.d.ts
|
|
7
7
|
/**
|
|
@@ -145,7 +145,7 @@ interface VerbosityOptions {
|
|
|
145
145
|
*
|
|
146
146
|
* @since 0.8.0
|
|
147
147
|
*/
|
|
148
|
-
declare function verbosity(options?: VerbosityOptions):
|
|
148
|
+
declare function verbosity(options?: VerbosityOptions): FluentParser<"sync", LogLevel$1, unknown>;
|
|
149
149
|
//#endregion
|
|
150
150
|
//#region src/debug.d.ts
|
|
151
151
|
/**
|
|
@@ -217,7 +217,7 @@ interface DebugOptions {
|
|
|
217
217
|
*
|
|
218
218
|
* @since 0.8.0
|
|
219
219
|
*/
|
|
220
|
-
declare function debug(options?: DebugOptions):
|
|
220
|
+
declare function debug(options?: DebugOptions): FluentParser<"sync", LogLevel$1, unknown>;
|
|
221
221
|
//#endregion
|
|
222
222
|
//#region src/output.d.ts
|
|
223
223
|
/**
|
|
@@ -317,7 +317,7 @@ interface LogOutputOptions {
|
|
|
317
317
|
*
|
|
318
318
|
* @since 0.8.0
|
|
319
319
|
*/
|
|
320
|
-
declare function logOutput(options?: LogOutputOptions):
|
|
320
|
+
declare function logOutput(options?: LogOutputOptions): FluentParser<"sync", LogOutput | undefined, unknown>;
|
|
321
321
|
/**
|
|
322
322
|
* Creates a console sink with configurable stream selection.
|
|
323
323
|
*
|
|
@@ -588,7 +588,7 @@ type LoggingOptionsConfig = LoggingOptionsWithLevel | LoggingOptionsWithVerbosit
|
|
|
588
588
|
* `debugLevel`, `normalLevel`, or `baseLevel`) is not a valid log level.
|
|
589
589
|
* @since 0.8.0
|
|
590
590
|
*/
|
|
591
|
-
declare function loggingOptions(config: LoggingOptionsConfig):
|
|
591
|
+
declare function loggingOptions(config: LoggingOptionsConfig): FluentParser<"sync", LoggingOptionsResult, unknown>;
|
|
592
592
|
/**
|
|
593
593
|
* Creates a LogTape configuration from parsed logging options.
|
|
594
594
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NonEmptyString, ValueParser } from "@optique/core/valueparser";
|
|
2
2
|
import { Message } from "@optique/core/message";
|
|
3
3
|
import { Config, LogLevel, LogLevel as LogLevel$1, LogRecord, Sink, Sink as Sink$1 } from "@logtape/logtape";
|
|
4
|
-
import {
|
|
4
|
+
import { FluentParser } from "@optique/core/fluent";
|
|
5
5
|
|
|
6
6
|
//#region src/loglevel.d.ts
|
|
7
7
|
/**
|
|
@@ -145,7 +145,7 @@ interface VerbosityOptions {
|
|
|
145
145
|
*
|
|
146
146
|
* @since 0.8.0
|
|
147
147
|
*/
|
|
148
|
-
declare function verbosity(options?: VerbosityOptions):
|
|
148
|
+
declare function verbosity(options?: VerbosityOptions): FluentParser<"sync", LogLevel$1, unknown>;
|
|
149
149
|
//#endregion
|
|
150
150
|
//#region src/debug.d.ts
|
|
151
151
|
/**
|
|
@@ -217,7 +217,7 @@ interface DebugOptions {
|
|
|
217
217
|
*
|
|
218
218
|
* @since 0.8.0
|
|
219
219
|
*/
|
|
220
|
-
declare function debug(options?: DebugOptions):
|
|
220
|
+
declare function debug(options?: DebugOptions): FluentParser<"sync", LogLevel$1, unknown>;
|
|
221
221
|
//#endregion
|
|
222
222
|
//#region src/output.d.ts
|
|
223
223
|
/**
|
|
@@ -317,7 +317,7 @@ interface LogOutputOptions {
|
|
|
317
317
|
*
|
|
318
318
|
* @since 0.8.0
|
|
319
319
|
*/
|
|
320
|
-
declare function logOutput(options?: LogOutputOptions):
|
|
320
|
+
declare function logOutput(options?: LogOutputOptions): FluentParser<"sync", LogOutput | undefined, unknown>;
|
|
321
321
|
/**
|
|
322
322
|
* Creates a console sink with configurable stream selection.
|
|
323
323
|
*
|
|
@@ -588,7 +588,7 @@ type LoggingOptionsConfig = LoggingOptionsWithLevel | LoggingOptionsWithVerbosit
|
|
|
588
588
|
* `debugLevel`, `normalLevel`, or `baseLevel`) is not a valid log level.
|
|
589
589
|
* @since 0.8.0
|
|
590
590
|
*/
|
|
591
|
-
declare function loggingOptions(config: LoggingOptionsConfig):
|
|
591
|
+
declare function loggingOptions(config: LoggingOptionsConfig): FluentParser<"sync", LoggingOptionsResult, unknown>;
|
|
592
592
|
/**
|
|
593
593
|
* Creates a LogTape configuration from parsed logging options.
|
|
594
594
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optique/logtape",
|
|
3
|
-
"version": "1.2.0-dev.
|
|
3
|
+
"version": "1.2.0-dev.2187",
|
|
4
4
|
"description": "LogTape logging integration for Optique CLI parser",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"CLI",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@optique/core": "1.2.0-dev.
|
|
72
|
+
"@optique/core": "1.2.0-dev.2187+6112b083"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@logtape/file": "^2.0.4",
|