 | LoggerOrganiseLogging method |
Renames the log (DebugFile) after a defined period of time DebugFileArchivingInterval
and deletes logs (DebugFiles) that are older than DebugFileArchiveLifetime.
The calling process must take care of any locking of the debug file.
Namespace: NetEti.ApplicationControlAssembly: NetEti.Logging (in NetEti.Logging.dll) Version: 1.0.0+b865061c8026804ece26684b7dc3403284234a08
Syntaxprotected override void OrganiseLoggings(
TimeSpan debugArchivingInterval,
int debugArchiveMaxCount
)
Protected Overrides Sub OrganiseLoggings (
debugArchivingInterval As TimeSpan,
debugArchiveMaxCount As Integer
)
protected:
virtual void OrganiseLoggings(
TimeSpan debugArchivingInterval,
int debugArchiveMaxCount
) override
abstract OrganiseLoggings :
debugArchivingInterval : TimeSpan *
debugArchiveMaxCount : int -> unit
override OrganiseLoggings :
debugArchivingInterval : TimeSpan *
debugArchiveMaxCount : int -> unit
Parameters
- debugArchivingInterval TimeSpan
- Time interval at which the current log (DebugFile)
is saved and emptied under a name with a time specification.
- debugArchiveMaxCount Int32
- Maximum lifetime of archived logs (DebugFiles).
Older logs are deleted.
See also