Quantcast

Sharing layouts

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Sharing layouts

Tobi
I'm using the same layout in different targets:

<layout xsi:type="CsvLayout" delimiter="Pipe" withHeader="false">
	<column name="time" layout="${longdate}"  />
	<column name="threadId" layout="${threadid:padding=3}"  />
	<column name="level" layout="${level:uppercase=true:padding=-7}"/>
	<column name="logger" layout="${logger:padding=-50:fixedlength=true}"/>
	<column name="message" layout="${message}" />
	<column name="exception" layout="${exception:format=ToString}"/>
</layout>

Is there a way to reuse the layout configuration between different File targets (from within the same config - no includes)?
I've tried to put the above layout config inside a <default-target-parameters> tag, but this doesn't work.
Loading...