Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Note
For more information about the centralLogFile element, see the following topic on the Microsoft IIS.net Web site: FTP Central Logging Options <centralLogFile>.
Specifies settings for the central log file when the FTP server is configured to use a single log file for all FTP sites.
Syntax
Attributes and Elements
The following sections describe attributes, child elements, and parent elements for this section.
Attributes
Attribute |
Description |
||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
directory |
Optional string attribute.Specifies the logging directory, where the log file and logging-related support files are stored. The default value is %SystemDrive%\inetpub\logs\LogFiles. |
||||||||||||||||||||||||||||||||||||||||||||
enabled |
Optional Boolean attribute.true if logging is enabled; otherwise false.The default value is true. |
||||||||||||||||||||||||||||||||||||||||||||
localTimeRollover |
Optional Boolean attribute. true if a new log file is created based on local time; otherwise, false for Coordinated Universal Time (UTC), which was previously called Greenwich Mean Time (GMT). Note Regardless of the setting, the time stamp for each W3C Extended Logging log record is UTC-based. The default value is false. |
||||||||||||||||||||||||||||||||||||||||||||
logExtFileFlags |
Optional flags attribute. Specifies the categories of information that are written to either the log file (when you use W3C Extended log file format) or to the ODBC data source during logging events for a site. The logExtFileFlags attribute can be one or more of the following values. If you specify more than one value, separate them with a comma (,). The default values are Date, Time, ClientIP, UserName, ServerIP, Method, UriStem, FtpStatus, Win32Status, FtpSubStatus, ServerPort, Session, and FullPath.
|
||||||||||||||||||||||||||||||||||||||||||||
Period |
Optional enum attribute.Specifies how often the FTP service creates a new log file. The period attribute can be one of the following possible values.The default value is Daily.
|
||||||||||||||||||||||||||||||||||||||||||||
selectiveLogging |
Optional flags attribute. Specifies the verbosity for FTP logging. The default value is LogSuccessful, LogError, LogInfrastructure.
|
||||||||||||||||||||||||||||||||||||||||||||
TruncateSize |
Optional int64 attribute. Specifies the maximum size of the log file (in bytes) after which to create a new log file. This value is only applicable when MaxSize is chosen for the period attribute. The minimum file size is 1,048,576 bytes. If this attribute is set to a value less than 1,048,576 bytes, the default value is implicitly assumed as 1,048,576 bytes. The default value is 20971520. |
Child Elements
None.
Parent Elements
Element |
Description |
---|---|
configuration |
Specifies the root element in every configuration file that is used by IIS 7. |
system.ftpServer |
Specifies the top-level section group in which this element is defined. |
log |
Specifies the root element for configuring FTP log settings. |
Remarks
For more information about the centralLogFile element, see the following topic on the Microsoft IIS.net Web site: FTP Central Logging Options <centralLogFile>.
Element Information
Configuration locations |
ApplicationHost.config |
Requirements |
IIS 7 |