I believe you can just insert the asterisk characters directly in your layout definition.
${processtime}: ***${message}
"padding" is for making sure that shorter strings are properly padded to achieve desired fixed length.
Fo example ${level:padding=10:padCharacter=Z} will produce "ZZZZZDebug" for Debug levevel (total length is 10).
Jarek
On Mon, Sep 28, 2009 at 7:44 AM, JayTee (via Nabble)
<[hidden email]> wrote:
I would like to have my log formatted something like this:
11:22:31.078: ***Trace Message
I assumed that the "padding" was the way to go, so I set up my nlog.config like this:
<target name="trace_file" xsi:type="File" fileName="${basedir}/logs/tracelog_${shortdate}.txt"
layout="${processtime}: ${message:padding=3:padCharacter=*}" />
The padding/padCharacter doesn't seem to work. Am I doing something wrong?