@optique/logtape 0.10.0-dev.289 → 0.10.0-dev.291
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 +0 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -70,7 +70,6 @@ Features:
|
|
|
70
70
|
`"fatal"`
|
|
71
71
|
- Provides suggestions for shell completion
|
|
72
72
|
|
|
73
|
-
|
|
74
73
|
### `verbosity()`
|
|
75
74
|
|
|
76
75
|
A parser for accumulating `-v` flags to determine log level.
|
|
@@ -102,7 +101,6 @@ Options:
|
|
|
102
101
|
- `long`: Long option name (default: `"--verbose"`)
|
|
103
102
|
- `baseLevel`: Starting log level (default: `"warning"`)
|
|
104
103
|
|
|
105
|
-
|
|
106
104
|
### `debug()`
|
|
107
105
|
|
|
108
106
|
A simple boolean flag parser for enabling debug logging.
|
|
@@ -129,7 +127,6 @@ Options:
|
|
|
129
127
|
- `debugLevel`: Level when flag is present (default: `"debug"`)
|
|
130
128
|
- `normalLevel`: Level when flag is absent (default: `"info"`)
|
|
131
129
|
|
|
132
|
-
|
|
133
130
|
### `logOutput()`
|
|
134
131
|
|
|
135
132
|
A parser for log output destination. Accepts `-` for console output or a file
|
|
@@ -155,7 +152,6 @@ const result2 = parse(parser, ["--log-output=/var/log/app.log"]);
|
|
|
155
152
|
const sink = await createSink(result1.value.output);
|
|
156
153
|
~~~~
|
|
157
154
|
|
|
158
|
-
|
|
159
155
|
### `loggingOptions()`
|
|
160
156
|
|
|
161
157
|
A preset that combines log level and log output options into a single group.
|
|
@@ -213,7 +209,6 @@ Common options:
|
|
|
213
209
|
- `groupLabel`: Label for option group in help text (default:
|
|
214
210
|
`"Logging options"`)
|
|
215
211
|
|
|
216
|
-
|
|
217
212
|
### `createLoggingConfig()`
|
|
218
213
|
|
|
219
214
|
Converts parsed logging options into a LogTape configuration object.
|
|
@@ -240,7 +235,6 @@ if (result.success) {
|
|
|
240
235
|
}
|
|
241
236
|
~~~~
|
|
242
237
|
|
|
243
|
-
|
|
244
238
|
### `createConsoleSink()`
|
|
245
239
|
|
|
246
240
|
Creates a console sink with configurable stream selection.
|
|
@@ -261,7 +255,6 @@ const sink3 = createConsoleSink({
|
|
|
261
255
|
});
|
|
262
256
|
~~~~
|
|
263
257
|
|
|
264
|
-
|
|
265
258
|
### `createSink()`
|
|
266
259
|
|
|
267
260
|
Creates a LogTape sink from a `LogOutput` value.
|