https://github.com/yurasidorets/nlog.targets.activemq
NLog target for ActiveMQ
https://github.com/yurasidorets/nlog.targets.activemq
activemq netstandard nlog nlog-target
Last synced: about 2 months ago
JSON representation
NLog target for ActiveMQ
- Host: GitHub
- URL: https://github.com/yurasidorets/nlog.targets.activemq
- Owner: YuraSidorets
- License: mit
- Created: 2020-05-19T20:22:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-04-24T21:24:31.000Z (6 months ago)
- Last Synced: 2025-06-08T19:07:55.327Z (4 months ago)
- Topics: activemq, netstandard, nlog, nlog-target
- Language: C#
- Size: 28.3 KB
- Stars: 24
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# NLog.Targets.ActiveMQ [](https://nuget.org/packages/NLog.Targets.ActiveMQ)
NLog custom target for ActiveMQ# Options
| Name | Type | Description |
|---------|--------|-------------|
| `Uri` | Layout | URL for the ActiveMQ Connecttion. Default: `tcp://localhost:61616` |
| `Destination` | Layout | Destination for the ActiveMQ message. Default: `queue://nlog.messages` |
| `Layout` | Layout | Payload for the ActiveMQ message |
| `Persistent` | Bool | Control delivery-mode whether Persistent or NonPersistent. Default = `True` |
| `UseCompression` | Bool | Control whether to enable compression for producer. Default = `False` |
| `Username` | Layout | Optional UserName for basic authentication |
| `Password` | Layout | Optional Password for basic authentication |
| `ClientId` | Layout | Optional identifier for this publisher-client |# Example NLog.config
```xml
${longdate} ${level} ${message} ${exception}
```
See also: [ActiveMQ Uri Configuration](https://activemq.apache.org/components/nms/providers/activemq/uri-configuration)
Based on [Nlog.Contrib.ActiveMq](https://github.com/NLog/NLog.Contrib.ActiveMQ)