plain json layout, without any attributes

12 views
Skip to first unread message

Alexander K.

unread,
Oct 27, 2016, 5:57:14 AM10/27/16
to NLog-Users
Hi
Now my config looks like
<layout xsi:type="JsonLayout">
        <attribute name="" layout="${message}" encode="false" />
</layout>

and the output is

{ "message": { my json here... } }

I don't need this "message" attribute
I just need the following

{ my json here... }

So, how to configure NLog to achive this??
Thx
Reply all
Reply to author
Forward
0 new messages