You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,14 @@
1
-
# Rabbitmq Appender
1
+
# RabbitMQ Appender for Log4JS
2
2
3
-
Push log events to a [Rabbitmq](https://www.rabbitmq.com/) MQ. You will need to include the [amqplib](https://www.npmjs.com/package/amqplib) package in your application's dependencies to use this appender.
3
+
Push log events to a [Rabbitmq](https://www.rabbitmq.com/) MQ. Require [log4js-node](https://github.com/log4js-node/log4js-node) 2.x or later.
4
+
5
+
```bash
6
+
npm install @log4js-ndoe/rabbitmq
7
+
```
4
8
5
9
## Configuration
6
10
7
-
*`type` - `rabbitmq`
11
+
*`type` - `@log4js-ndoe/rabbitmq`
8
12
*`host` - `string` (optional, defaults to `127.0.0.1`) - the location of the rabbitmq server
9
13
*`port` - `integer` (optional, defaults to `5672`) - the port the rabbitmq server is listening on
10
14
*`username` - `string` (optional, defaults to `guest`) - username to use when authenticating connection to rabbitmq
@@ -23,7 +27,7 @@ The appender will use the Rabbitmq Routing model command to send the log event m
0 commit comments