Click or drag to resize

LoggerBase methods

The LoggerBase Type exposes the following members.

Methods
 NameDescription of the
Public MethodStatic MemberCutLog(String, Int64, Boolean) Shortens the log file 'logPath' to the last 'countItems' entries. The original log file is saved with the extension '.last'. If 'countLines' is false, the entries with the last 'countItems' remain date values, otherwise the last 'countItems' lines.
Public MethodStatic MemberCutLog(String, Int64, Int64, Boolean) Shortens the log file 'logPath' to the last 'countItems' entries. The original log file is saved with the extension '.last'. If 'countLines' is false, the entries with the last 'countItems' remain date values, otherwise the last 'countItems' lines.
Public MethodDispose Public method for cleaning up.
Protected MethodDispose(Boolean) This can be tidied up if necessary.
Protected MethodFinalise Finaliser: is called by the GarbageCollector.
(Overwrites ObjectFinalise)
Public MethodFlush Ensures that all pending actions are executed. e.g. filled intermediate tables (buffers) are processed (flushed).
Public MethodHandleInfo Callback for logging the message: is created by the responsible InfoController provided that you have registered in advance.
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.
Protected MethodOrganiseLoggings Provides the option to clean up loggings. Does nothing itself, can be overwritten.
Public MethodShow Can be overwritten to display the log; for text files, e.g. via output to the standard editor.
Public MethodStop Must be called at the end of processing to stop the timer.
Protected MethodWriteLog Writes an entry to the log file (or somewhere else), but is not recognised externally. directly; rather, the logger should be called as a viewer in the InfoController.
Back to the top
See also