Click or drag to resize

Logger methods

The Logger Type exposes the following members.

Methods
 NameDescription of the
Public MethodDispose Public method for cleaning up.
(Inherited from LoggerBase)
Protected MethodDispose(Boolean) This can be tidied up if necessary.
(Inherited from LoggerBase)
Protected MethodFinalise Finaliser: is called by the GarbageCollector.
(Inherited from LoggerBase)
Public MethodFlush Ensures that all pending actions are executed. e.g. filled intermediate tables (buffers) are processed (flushed).
(Inherited from LoggerBase)
Public MethodHandleInfo Callback for logging the message: is created by the responsible InfoController provided that you have registered in advance.
(Overwrites LoggerBaseHandleInfo(Object, InfoArgs))
Public MethodLog Accepts an entry for logging. Provides timer- or counter-controlled buffering of messages. Does not log itself directly, but calls the method abstract defined here WriteLog, in which the physical writing then takes place. Flows the buffer asynchronously to improve logging performance.
(Inherited from LoggerBase)
Protected MethodOrganiseLoggings 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.
(Overwrites LoggerBaseOrganiseLoggings(TimeSpan, Int32))
Public MethodShow Can be overwritten to display the log; for text files, e.g. via output to the standard editor.
(Overwrites LoggerBaseShow)
Public MethodStop Must be called at the end of processing to stop the timer.
(Inherited from LoggerBase)
Protected MethodWriteLog Writes an entry to the log file, but is not recognised externally. directly; instead, the logger must be called as a viewer via enter its HandleInfoForLog method in the InfoController.
(Overwrites LoggerBaseWriteLog(String))
Back to the top
See also