Hi
It seems that deleteOldFileOnStartup somehow make logger to erase fist few lines from the file including for example header.
This is a config file
<target name="fileFormOverwrite" xsi:type="File" fileName="${logDirectory}/${processname}.log"
layout="${genericLayout}"
deleteOldFileOnStartup="true"
concurrentWrites="false"
header="+++++++++++++"/>
As long as deleteOldFileOnStartup is true, the +++++++++++++ never appears in the log file (along with some of the program info which is logged by Main().
Here are examples of log file
deleteOldFileOnStartup="false"
+++++++++++++
22/10/2008 11:32:48| INFO| 10|---------------------------------------------
22/10/2008 11:32:48| INFO| 10|RB: App starts
22/10/2008 11:32:48| INFO| 10|---------------------------------------------
22/10/2008 11:32:50| INFO| 10|RB: DropDownList: executing prSelect
22/10/2008 11:32:51| INFO| 10|RB: DropDownList: executing prProcessView_Select
...
deleteOldFileOnStartup="true"
22/10/2008 11:34:08| INFO| 10|RB: DropDownList: executing prSelect
22/10/2008 11:34:08| INFO| 10|RB: DropDownList: executing prProcessView_Select
....
Cheers, Igor