https://github.com/paralleltask/nlog.resttarget
HTTP Rest Target for NLog
https://github.com/paralleltask/nlog.resttarget
Last synced: 9 months ago
JSON representation
HTTP Rest Target for NLog
- Host: GitHub
- URL: https://github.com/paralleltask/nlog.resttarget
- Owner: ParallelTask
- License: mit
- Created: 2018-02-10T19:39:00.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-13T20:16:18.000Z (almost 8 years ago)
- Last Synced: 2025-04-19T03:11:34.379Z (9 months ago)
- Language: C#
- Size: 1.5 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NLog.RestTarget
## What
Rest API logging with NLog made easy. Generates log entries as JSON. XML is not supported yet. These entries can be sent over to RestApis.
## What problems does this solve?
Webservice Target of NLog does not support JSON Layout https://github.com/NLog/NLog/issues/1905. It requires atleast one root parameter as below example
```
```
NLog.RestTarget solves these problems. You don't require to add root parameter for JSON Layout.
## How to use it
1. Install the **NLog.RestTarget** package from NuGet
2. Add **NLog.RestTarget** to NLog extensions
```
-----
```
3. Add to NLog targets
```
````
`````` is not supported. NLog.RestTarget only solves the JSON Layout problem.
## Known Issues
1. Supports only JSON body.
2. Supports only HTTP Post Verb.