@logtape/syslog 0.12.0-dev.199 → 0.12.0-dev.201
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 +38 -75
- package/deno.json +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,89 +1,52 @@
|
|
|
1
|
-
|
|
1
|
+
<!-- deno-fmt-ignore-file -->
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
LogTape syslog sink
|
|
4
|
+
===================
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
[![JSR][JSR badge]][JSR]
|
|
7
|
+
[![npm][npm badge]][npm]
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
Syslog sink for [LogTape]. This package provides a syslog sink that sends log
|
|
10
|
+
messages to a syslog server following the [RFC 5424] specification.
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
- **Zero dependencies**: No external dependencies
|
|
17
|
-
|
|
18
|
-
## Installation
|
|
19
|
-
|
|
20
|
-
::: code-group
|
|
21
|
-
|
|
22
|
-
```sh [Deno]
|
|
23
|
-
deno add jsr:@logtape/syslog
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
```sh [npm]
|
|
27
|
-
npm add @logtape/syslog
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
```sh [pnpm]
|
|
31
|
-
pnpm add @logtape/syslog
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
```sh [Yarn]
|
|
35
|
-
yarn add @logtape/syslog
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
```sh [Bun]
|
|
39
|
-
bun add @logtape/syslog
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
:::
|
|
12
|
+
[JSR]: https://jsr.io/@logtape/syslog
|
|
13
|
+
[JSR badge]: https://jsr.io/badges/@logtape/syslog
|
|
14
|
+
[npm]: https://www.npmjs.com/package/@logtape/syslog
|
|
15
|
+
[npm badge]: https://img.shields.io/npm/v/@logtape/syslog?logo=npm
|
|
16
|
+
[LogTape]: https://logtape.org/
|
|
17
|
+
[RFC 5424]: https://tools.ietf.org/rfc/rfc5424.txt
|
|
43
18
|
|
|
44
|
-
## Usage
|
|
45
19
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
import { getSyslogSink } from "@logtape/syslog";
|
|
20
|
+
Features
|
|
21
|
+
--------
|
|
49
22
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
appName: "my-app",
|
|
58
|
-
}),
|
|
59
|
-
},
|
|
60
|
-
loggers: [
|
|
61
|
-
{ category: [], sinks: ["syslog"], level: "info" },
|
|
62
|
-
],
|
|
63
|
-
});
|
|
64
|
-
```
|
|
23
|
+
- *RFC 5424 compliant*: Follows the official syslog protocol specification
|
|
24
|
+
- *Multiple transports*: Supports both UDP and TCP protocols
|
|
25
|
+
- *Cross-runtime*: Works on Deno, Node.js, and Bun
|
|
26
|
+
- *Non-blocking*: Asynchronous message sending with proper cleanup
|
|
27
|
+
- *Configurable*: Extensive configuration options for facility, hostname, etc.
|
|
28
|
+
- *Structured logging*: Optional structured data support
|
|
29
|
+
- *Zero dependencies*: No external dependencies
|
|
65
30
|
|
|
66
|
-
## Configuration Options
|
|
67
31
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
- **protocol**: Transport protocol "udp" or "tcp" (default: "udp")
|
|
71
|
-
- **facility**: Syslog facility (default: "local0")
|
|
72
|
-
- **appName**: Application name in syslog messages (default: "logtape")
|
|
73
|
-
- **syslogHostname**: Hostname field in syslog messages
|
|
74
|
-
- **processId**: Process ID field in syslog messages
|
|
75
|
-
- **timeout**: Connection timeout in milliseconds (default: 5000)
|
|
76
|
-
- **includeStructuredData**: Include LogTape properties as structured data (default: false)
|
|
32
|
+
Installation
|
|
33
|
+
------------
|
|
77
34
|
|
|
78
|
-
|
|
35
|
+
This package is available on [JSR] and [npm]. You can install it for various
|
|
36
|
+
JavaScript runtimes and package managers:
|
|
79
37
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
38
|
+
~~~~ sh
|
|
39
|
+
deno add jsr:@logtape/syslog # for Deno
|
|
40
|
+
npm add @logtape/syslog # for npm
|
|
41
|
+
pnpm add @logtape/syslog # for pnpm
|
|
42
|
+
yarn add @logtape/syslog # for Yarn
|
|
43
|
+
bun add @logtape/syslog # for Bun
|
|
44
|
+
~~~~
|
|
83
45
|
|
|
84
|
-
## License
|
|
85
46
|
|
|
86
|
-
|
|
47
|
+
Docs
|
|
48
|
+
----
|
|
87
49
|
|
|
88
|
-
|
|
89
|
-
|
|
50
|
+
The docs of this package is available at
|
|
51
|
+
<https://logtape.org/manual/sinks#syslog-sink>. For the API references,
|
|
52
|
+
see <https://jsr.io/@logtape/syslog>.
|
package/deno.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logtape/syslog",
|
|
3
|
-
"version": "0.12.0-dev.
|
|
3
|
+
"version": "0.12.0-dev.201+5fd8ad3c",
|
|
4
4
|
"description": "Syslog sink for LogTape",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"logging",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"./package.json": "./package.json"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@logtape/logtape": "0.12.0-dev.
|
|
44
|
+
"@logtape/logtape": "0.12.0-dev.201+5fd8ad3c"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@alinea/suite": "^0.6.3",
|