|
986 | 986 | <xs:element name="footer" minOccurs="0" maxOccurs="1" type="Layout" />
|
987 | 987 | <xs:element name="encoding" minOccurs="0" maxOccurs="1" type="xs:string" />
|
988 | 988 | <xs:element name="lineEnding" minOccurs="0" maxOccurs="1" type="LineEndingMode" />
|
989 |
| - <xs:element name="maxArchiveFiles" minOccurs="0" maxOccurs="1" type="xs:integer" /> |
990 | 989 | <xs:element name="archiveNumbering" minOccurs="0" maxOccurs="1" type="NLog.Targets.ArchiveNumberingMode" />
|
991 | 990 | <xs:element name="archiveFileName" minOccurs="0" maxOccurs="1" type="Layout" />
|
992 | 991 | <xs:element name="archiveEvery" minOccurs="0" maxOccurs="1" type="NLog.Targets.FileArchivePeriod" />
|
993 | 992 | <xs:element name="archiveAboveSize" minOccurs="0" maxOccurs="1" type="xs:long" />
|
| 993 | + <xs:element name="maxArchiveFiles" minOccurs="0" maxOccurs="1" type="xs:integer" /> |
994 | 994 | <xs:element name="enableArchiveFileCompression" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
995 | 995 | <xs:element name="forceManaged" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
996 |
| - <xs:element name="fileAttributes" minOccurs="0" maxOccurs="1" type="NLog.Targets.Win32FileAttributes" /> |
997 |
| - <xs:element name="replaceFileContentsOnEachWrite" minOccurs="0" maxOccurs="1" type="xs:boolean" /> |
| 996 | + <xs:element name="cleanupFileName" minOccurs="0" maxOccurs="1" type="xs:boolean" /> |
998 | 997 | <xs:element name="fileName" minOccurs="0" maxOccurs="1" type="Layout" />
|
999 | 998 | <xs:element name="archiveDateFormat" minOccurs="0" maxOccurs="1" type="xs:string" />
|
1000 | 999 | <xs:element name="archiveOldFileOnStartup" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
1001 | 1000 | <xs:element name="createDirs" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
1002 |
| - <xs:element name="deleteOldFileOnStartup" minOccurs="0" maxOccurs="1" type="xs:boolean" /> |
1003 | 1001 | <xs:element name="enableFileDelete" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
1004 |
| - <xs:element name="openFileCacheTimeout" minOccurs="0" maxOccurs="1" type="xs:integer" /> |
1005 |
| - <xs:element name="networkWrites" minOccurs="0" maxOccurs="1" type="xs:boolean" /> |
1006 |
| - <xs:element name="maxLogFilenames" minOccurs="0" maxOccurs="1" type="xs:integer" /> |
1007 |
| - <xs:element name="keepFileOpen" minOccurs="0" maxOccurs="1" type="xs:boolean" /> |
| 1002 | + <xs:element name="fileAttributes" minOccurs="0" maxOccurs="1" type="NLog.Targets.Win32FileAttributes" /> |
| 1003 | + <xs:element name="deleteOldFileOnStartup" minOccurs="0" maxOccurs="1" type="xs:boolean" /> |
| 1004 | + <xs:element name="replaceFileContentsOnEachWrite" minOccurs="0" maxOccurs="1" type="xs:boolean" /> |
1008 | 1005 | <xs:element name="concurrentWrites" minOccurs="0" maxOccurs="1" type="xs:boolean" />
|
1009 |
| - <xs:element name="concurrentWriteAttempts" minOccurs="0" maxOccurs="1" type="xs:integer" /> |
1010 | 1006 | <xs:element name="concurrentWriteAttemptDelay" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
1011 |
| - <xs:element name="autoFlush" minOccurs="0" maxOccurs="1" type="xs:boolean" /> |
| 1007 | + <xs:element name="maxLogFilenames" minOccurs="0" maxOccurs="1" type="xs:integer" /> |
| 1008 | + <xs:element name="networkWrites" minOccurs="0" maxOccurs="1" type="xs:boolean" /> |
1012 | 1009 | <xs:element name="openFileCacheSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
| 1010 | + <xs:element name="openFileCacheTimeout" minOccurs="0" maxOccurs="1" type="xs:integer" /> |
1013 | 1011 | <xs:element name="bufferSize" minOccurs="0" maxOccurs="1" type="xs:integer" />
|
| 1012 | + <xs:element name="autoFlush" minOccurs="0" maxOccurs="1" type="xs:boolean" /> |
| 1013 | + <xs:element name="concurrentWriteAttempts" minOccurs="0" maxOccurs="1" type="xs:integer" /> |
| 1014 | + <xs:element name="keepFileOpen" minOccurs="0" maxOccurs="1" type="xs:boolean" /> |
1014 | 1015 | </xs:choice>
|
1015 | 1016 | <xs:attribute name="name" type="xs:string">
|
1016 | 1017 | <xs:annotation>
|
|
1042 | 1043 | <xs:documentation>Line ending mode.</xs:documentation>
|
1043 | 1044 | </xs:annotation>
|
1044 | 1045 | </xs:attribute>
|
1045 |
| - <xs:attribute name="maxArchiveFiles" type="xs:integer"> |
1046 |
| - <xs:annotation> |
1047 |
| - <xs:documentation>Maximum number of archive files that should be kept.</xs:documentation> |
1048 |
| - </xs:annotation> |
1049 |
| - </xs:attribute> |
1050 | 1046 | <xs:attribute name="archiveNumbering" type="NLog.Targets.ArchiveNumberingMode">
|
1051 | 1047 | <xs:annotation>
|
1052 | 1048 | <xs:documentation>Way file archives are numbered.</xs:documentation>
|
|
1067 | 1063 | <xs:documentation>Size in bytes above which log files will be automatically archived. Warning: combining this with isn't supported. We cannot create multiple archive files, if they should have the same name. Choose: </xs:documentation>
|
1068 | 1064 | </xs:annotation>
|
1069 | 1065 | </xs:attribute>
|
| 1066 | + <xs:attribute name="maxArchiveFiles" type="xs:integer"> |
| 1067 | + <xs:annotation> |
| 1068 | + <xs:documentation>Maximum number of archive files that should be kept.</xs:documentation> |
| 1069 | + </xs:annotation> |
| 1070 | + </xs:attribute> |
1070 | 1071 | <xs:attribute name="enableArchiveFileCompression" type="xs:boolean">
|
1071 | 1072 | <xs:annotation>
|
1072 | 1073 | <xs:documentation>Indicates whether to compress archive files into the zip archive format.</xs:documentation>
|
|
1077 | 1078 | <xs:documentation>Gets or set a value indicating whether a managed file stream is forced, instead of used the native implementation.</xs:documentation>
|
1078 | 1079 | </xs:annotation>
|
1079 | 1080 | </xs:attribute>
|
1080 |
| - <xs:attribute name="fileAttributes" type="NLog.Targets.Win32FileAttributes"> |
| 1081 | + <xs:attribute name="cleanupFileName" type="xs:boolean"> |
1081 | 1082 | <xs:annotation>
|
1082 |
| - <xs:documentation>File attributes (Windows only).</xs:documentation> |
1083 |
| - </xs:annotation> |
1084 |
| - </xs:attribute> |
1085 |
| - <xs:attribute name="replaceFileContentsOnEachWrite" type="xs:boolean"> |
1086 |
| - <xs:annotation> |
1087 |
| - <xs:documentation>Indicates whether to replace file contents on each write instead of appending log message at the end.</xs:documentation> |
| 1083 | + <xs:documentation>Cleanup invalid values in a filename, e.g. slashes in a filename. If set to true, this can impact the performance of massive writes. If set to false, nothing gets written when the filename is wrong.</xs:documentation> |
1088 | 1084 | </xs:annotation>
|
1089 | 1085 | </xs:attribute>
|
1090 | 1086 | <xs:attribute name="fileName" type="SimpleLayoutAttribute">
|
|
1107 | 1103 | <xs:documentation>Indicates whether to create directories if they do not exist.</xs:documentation>
|
1108 | 1104 | </xs:annotation>
|
1109 | 1105 | </xs:attribute>
|
| 1106 | + <xs:attribute name="enableFileDelete" type="xs:boolean"> |
| 1107 | + <xs:annotation> |
| 1108 | + <xs:documentation>Indicates whether to enable log file(s) to be deleted.</xs:documentation> |
| 1109 | + </xs:annotation> |
| 1110 | + </xs:attribute> |
| 1111 | + <xs:attribute name="fileAttributes" type="NLog.Targets.Win32FileAttributes"> |
| 1112 | + <xs:annotation> |
| 1113 | + <xs:documentation>File attributes (Windows only).</xs:documentation> |
| 1114 | + </xs:annotation> |
| 1115 | + </xs:attribute> |
1110 | 1116 | <xs:attribute name="deleteOldFileOnStartup" type="xs:boolean">
|
1111 | 1117 | <xs:annotation>
|
1112 | 1118 | <xs:documentation>Indicates whether to delete old log file on startup.</xs:documentation>
|
1113 | 1119 | </xs:annotation>
|
1114 | 1120 | </xs:attribute>
|
1115 |
| - <xs:attribute name="enableFileDelete" type="xs:boolean"> |
| 1121 | + <xs:attribute name="replaceFileContentsOnEachWrite" type="xs:boolean"> |
1116 | 1122 | <xs:annotation>
|
1117 |
| - <xs:documentation>Indicates whether to enable log file(s) to be deleted.</xs:documentation> |
| 1123 | + <xs:documentation>Indicates whether to replace file contents on each write instead of appending log message at the end.</xs:documentation> |
1118 | 1124 | </xs:annotation>
|
1119 | 1125 | </xs:attribute>
|
1120 |
| - <xs:attribute name="openFileCacheTimeout" type="xs:integer"> |
| 1126 | + <xs:attribute name="concurrentWrites" type="xs:boolean"> |
1121 | 1127 | <xs:annotation>
|
1122 |
| - <xs:documentation>Maximum number of seconds that files are kept open. If this number is negative the files are not automatically closed after a period of inactivity.</xs:documentation> |
| 1128 | + <xs:documentation>Indicates whether concurrent writes to the log file by multiple processes on the same host.</xs:documentation> |
1123 | 1129 | </xs:annotation>
|
1124 | 1130 | </xs:attribute>
|
1125 |
| - <xs:attribute name="networkWrites" type="xs:boolean"> |
| 1131 | + <xs:attribute name="concurrentWriteAttemptDelay" type="xs:integer"> |
1126 | 1132 | <xs:annotation>
|
1127 |
| - <xs:documentation>Indicates whether concurrent writes to the log file by multiple processes on different network hosts.</xs:documentation> |
| 1133 | + <xs:documentation>Delay in milliseconds to wait before attempting to write to the file again.</xs:documentation> |
1128 | 1134 | </xs:annotation>
|
1129 | 1135 | </xs:attribute>
|
1130 | 1136 | <xs:attribute name="maxLogFilenames" type="xs:integer">
|
1131 | 1137 | <xs:annotation>
|
1132 | 1138 | <xs:documentation>Maximum number of log filenames that should be stored as existing.</xs:documentation>
|
1133 | 1139 | </xs:annotation>
|
1134 | 1140 | </xs:attribute>
|
1135 |
| - <xs:attribute name="keepFileOpen" type="xs:boolean"> |
| 1141 | + <xs:attribute name="networkWrites" type="xs:boolean"> |
1136 | 1142 | <xs:annotation>
|
1137 |
| - <xs:documentation>Indicates whether to keep log file open instead of opening and closing it on each logging event.</xs:documentation> |
| 1143 | + <xs:documentation>Indicates whether concurrent writes to the log file by multiple processes on different network hosts.</xs:documentation> |
1138 | 1144 | </xs:annotation>
|
1139 | 1145 | </xs:attribute>
|
1140 |
| - <xs:attribute name="concurrentWrites" type="xs:boolean"> |
| 1146 | + <xs:attribute name="openFileCacheSize" type="xs:integer"> |
1141 | 1147 | <xs:annotation>
|
1142 |
| - <xs:documentation>Indicates whether concurrent writes to the log file by multiple processes on the same host.</xs:documentation> |
| 1148 | + <xs:documentation>Number of files to be kept open. Setting this to a higher value may improve performance in a situation where a single File target is writing to many files (such as splitting by level or by logger).</xs:documentation> |
1143 | 1149 | </xs:annotation>
|
1144 | 1150 | </xs:attribute>
|
1145 |
| - <xs:attribute name="concurrentWriteAttempts" type="xs:integer"> |
| 1151 | + <xs:attribute name="openFileCacheTimeout" type="xs:integer"> |
1146 | 1152 | <xs:annotation>
|
1147 |
| - <xs:documentation>Number of times the write is appended on the file before NLog discards the log message.</xs:documentation> |
| 1153 | + <xs:documentation>Maximum number of seconds that files are kept open. If this number is negative the files are not automatically closed after a period of inactivity.</xs:documentation> |
1148 | 1154 | </xs:annotation>
|
1149 | 1155 | </xs:attribute>
|
1150 |
| - <xs:attribute name="concurrentWriteAttemptDelay" type="xs:integer"> |
| 1156 | + <xs:attribute name="bufferSize" type="xs:integer"> |
1151 | 1157 | <xs:annotation>
|
1152 |
| - <xs:documentation>Delay in milliseconds to wait before attempting to write to the file again.</xs:documentation> |
| 1158 | + <xs:documentation>Log file buffer size in bytes.</xs:documentation> |
1153 | 1159 | </xs:annotation>
|
1154 | 1160 | </xs:attribute>
|
1155 | 1161 | <xs:attribute name="autoFlush" type="xs:boolean">
|
1156 | 1162 | <xs:annotation>
|
1157 | 1163 | <xs:documentation>Indicates whether to automatically flush the file buffers after each log message.</xs:documentation>
|
1158 | 1164 | </xs:annotation>
|
1159 | 1165 | </xs:attribute>
|
1160 |
| - <xs:attribute name="openFileCacheSize" type="xs:integer"> |
| 1166 | + <xs:attribute name="concurrentWriteAttempts" type="xs:integer"> |
1161 | 1167 | <xs:annotation>
|
1162 |
| - <xs:documentation>Number of files to be kept open. Setting this to a higher value may improve performance in a situation where a single File target is writing to many files (such as splitting by level or by logger).</xs:documentation> |
| 1168 | + <xs:documentation>Number of times the write is appended on the file before NLog discards the log message.</xs:documentation> |
1163 | 1169 | </xs:annotation>
|
1164 | 1170 | </xs:attribute>
|
1165 |
| - <xs:attribute name="bufferSize" type="xs:integer"> |
| 1171 | + <xs:attribute name="keepFileOpen" type="xs:boolean"> |
1166 | 1172 | <xs:annotation>
|
1167 |
| - <xs:documentation>Log file buffer size in bytes.</xs:documentation> |
| 1173 | + <xs:documentation>Indicates whether to keep log file open instead of opening and closing it on each logging event.</xs:documentation> |
1168 | 1174 | </xs:annotation>
|
1169 | 1175 | </xs:attribute>
|
1170 | 1176 | </xs:extension>
|
|
0 commit comments