@logtape/adaptor-winston 1.4.0-dev.466 → 1.4.0-dev.468
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 +8 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
[![npm][npm badge]][npm]
|
|
8
8
|
|
|
9
9
|
*@logtape/adaptor-winston* is a [LogTape] adapter that forwards log records to
|
|
10
|
-
[winston] loggers, enabling seamless integration between LogTape-enabled
|
|
11
|
-
and applications using winston for logging infrastructure.
|
|
10
|
+
[winston] loggers, enabling seamless integration between LogTape-enabled
|
|
11
|
+
libraries and applications using winston for logging infrastructure.
|
|
12
12
|
|
|
13
|
-
[JSR]: https://jsr.io/@logtape/adaptor-winston
|
|
14
13
|
[JSR badge]: https://jsr.io/badges/@logtape/adaptor-winston
|
|
15
|
-
[
|
|
14
|
+
[JSR]: https://jsr.io/@logtape/adaptor-winston
|
|
16
15
|
[npm badge]: https://img.shields.io/npm/v/@logtape/adaptor-winston?logo=npm
|
|
16
|
+
[npm]: https://www.npmjs.com/package/@logtape/adaptor-winston
|
|
17
17
|
[LogTape]: https://logtape.org/
|
|
18
18
|
[winston]: https://github.com/winstonjs/winston
|
|
19
19
|
|
|
@@ -33,7 +33,8 @@ bun add @logtape/adaptor-winston # for Bun
|
|
|
33
33
|
Quick start
|
|
34
34
|
-----------
|
|
35
35
|
|
|
36
|
-
The simplest way to integrate LogTape with winston is to import the
|
|
36
|
+
The simplest way to integrate LogTape with winston is to import the
|
|
37
|
+
auto-installer:
|
|
37
38
|
|
|
38
39
|
~~~~ typescript
|
|
39
40
|
import "@logtape/adaptor-winston/install";
|
|
@@ -146,7 +147,7 @@ Level mapping
|
|
|
146
147
|
LogTape log levels are mapped to winston levels as follows:
|
|
147
148
|
|
|
148
149
|
| LogTape Level | winston Level |
|
|
149
|
-
|
|
150
|
+
| ------------- | ------------- |
|
|
150
151
|
| `trace` | `silly` |
|
|
151
152
|
| `debug` | `debug` |
|
|
152
153
|
| `info` | `info` |
|
|
@@ -177,7 +178,7 @@ Category formatting
|
|
|
177
178
|
|
|
178
179
|
The adapter supports flexible category formatting options:
|
|
179
180
|
|
|
180
|
-
~~~~typescript
|
|
181
|
+
~~~~ typescript
|
|
181
182
|
import { install } from "@logtape/adaptor-winston";
|
|
182
183
|
|
|
183
184
|
// Hide categories completely
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logtape/adaptor-winston",
|
|
3
|
-
"version": "1.4.0-dev.
|
|
3
|
+
"version": "1.4.0-dev.468+3b71b201",
|
|
4
4
|
"description": "winston adapter for LogTape logging library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"logging",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
],
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"winston": "^3.17.0",
|
|
63
|
-
"@logtape/logtape": "^1.4.0-dev.
|
|
63
|
+
"@logtape/logtape": "^1.4.0-dev.468+3b71b201"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@alinea/suite": "^0.6.3",
|