kk.
kk.

Reputation: 41

With NLog can I set the property of a LayoutRender using the value of another one?

I'd like to use a LayoutRenderer in the configuration of another one, for example something like

${message:exceptionSeparator=${newline}:withException=true}

is that possible?

thanks

Upvotes: 1

Views: 199

Answers (1)

Rolf Kristensen
Rolf Kristensen

Reputation: 19867

Guess you can use this work-around:

${message}${onexception:${newline}}${exception:format=tostring}

But yes it would be nice to support string-literal-tokens like ${newline} for standard string-properties.

Upvotes: 1

Related Questions