Accessing layout renderer values from within a target
22 views
Skip to first unread message
Thomas Ardal
unread,
Feb 20, 2017, 10:25:00 AM2/20/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to NLog-Users
I was wondering if it is possible to access the values of generated layout renderers from within a target. Let's say I implement a target that want to ping a hostname every time someone logs anything. To do this, I would need to access the value of ${machinename} from within my target. I don't want to add ${machinename} as part of the layout which ends up in the log file (or whatever target I use).
Thomas Ardal
unread,
Feb 27, 2017, 2:45:01 AM2/27/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message