An open API service indexing awesome lists of open source software.

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

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.