---
title: "Discussion on \"NLog logging to Graylog: unexpected Newtonsoft.Json.JsonSerializationException\" | Hashnode"
description: "Discussion on \"NLog logging to Graylog: unexpected Newtonsoft.Json.JsonSerializationException\". I was trying to add Graylog support to a project. I added the latest NLog.Web.AspNetCore and NLog.Web.AspNetCore.Targets.Gelf packages, and set up the correct NLog.config file. I got the following exception message in the /c/temp/nloginternallog_bank..."
url: "https://hashnode.com/posts/nlog-logging-to-graylog-unexpected-newtonsoftjsonjsonserializationexception/62f9681efffdab933bdeb06e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [NLog logging to Graylog: unexpected Newtonsoft.Json.JsonSerializationException](https://notebook.shukebeta.com/nlog-logging-to-graylog-unexpected-newtonsoftjsonjsonserializationexception?utm_source=hashnode&utm_medium=feed)

I was trying to add Graylog support to a project. I added the latest NLog.Web.AspNetCore and NLog.Web.AspNetCore.Targets.Gelf packages, and set up the correct NLog.config file. I got the following exception message in the /c/temp/nloginternallog\_bank...

Aug 14, 2022 · 1 min read · notebook.shukebeta.com  
Read the article

-   [#nlog](https://hashnode.com/tag/nlog)

## Written by

[David Wei](https://hashnode.com/@shukebeta)

@shukebeta

  
[View profile](https://hashnode.com/@shukebeta)

Stay hungry, stay foolish

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
