{prop:format}
.IFormattable
values that allows to use format specifiers defined for standard primitives (numeric types, TimeSpan
, DateTime
, etc.) as well as customize rendering of custom complex types.{Timestamp:yy-mm-dd}
{RandomDouble:0.###}
W
— inserts a leading whitespace next to property value.w
— inserts a trailing whitespace next to property value.wW
— inserts both leading and trailing whitespaces next to property value.Level
property in output templates supports custom formats consisting of case and width.u
(uppercase), w
(lowercase) and t
(title case).Error
value is rendered with different level formats:u5
--> ERROR
u3
--> ERR
w5
--> error
w3
--> err
t5
--> Error
t3
--> Err