Does ExceptionLayoutRenderer.Padding work?

3 messages Options
Embed this post
Permalink
xr280xr

Does ExceptionLayoutRenderer.Padding work?

Reply Threaded More More options
Print post
Permalink
Hi,
I'm new to nLog and I'm trying to format my log file to make it more readable. I was hoping to use the padding property to indent my stack trace but when I set padding it doesn't seem to do anything at all. I tried also setting the padCharacter to '@' and didn't find that character in my log. How does padding work? Thanks!

${exception:format=tostring:padding=10}
Jaroslaw Kowalski

Re: Does ExceptionLayoutRenderer.Padding work?

Reply Threaded More More options
Print post
Permalink
No. Padding is not supported for this one. It will be in NLog2, though, thanks to uniform processing of all layout renderer outputs with wrappers.
 
Jarek

On Mon, Aug 3, 2009 at 3:10 PM, xr280xr (via Nabble) - No Reply <[hidden email]> wrote:
Hi,
I'm new to nLog and I'm trying to format my log file to make it more readable. I was hoping to use the padding property to indent my stack trace but when I set padding it doesn't seem to do anything at all. I tried also setting the padCharacter to '@' and didn't find that character in my log. How does padding work? Thanks!

${exception:format=tostring:padding=10}

xr280xr

Re: Does ExceptionLayoutRenderer.Padding work?

Reply Threaded More More options
Print post
Permalink
Cool, thanks for the quick response. Sorry if I missed that info somewhere, I've been searching for a while.