QUESTION:
Is it possible to configure timing of log rotation of Flat File ActiveSync. I want to get the adapter to rotate log files at specific time (e.g. 05:00:00) each day, but there seems no regularity in rotation.
ANSWER:
We cannot currently rotate at a specific time.
The logging rotation is an efficient lazy algorithm, performing the size/time
rotation checks only when a log request occurs. The only way to ensure precise
rotation times would be to have steady traffic to the logs. Increasing your poll to
be more frequent would certainly help to keep the log rotation more regular.
The time-based log rotation is based on a special hidden timestamp file maintained
in the directory of the log files.
The name of the file is:
.tstamp_<RESOURCENAME>_@@@_<TSTAMP>
where
RESOURCENAME is the name of the resource
TSTAMP is the number of milliseconds since Jan 1, 1970 0:00 GMT.
The TSTAMP part of the filename reflects the time at which the logs were last
rotated.
No comments:
Post a Comment