![]() | Logger class |
The Logger Type exposes the following members.
Name | Description of the | |
---|---|---|
![]() | Logger | Parameterless constructor: sets the log file to GetEnvironmentVariable("TEMP") + \ + ProductName + @".log" and calls the next constructor. |
![]() | Logger(Boolean) | Constructor: takes over plainMessage, sets the log file to GetEnvironmentVariable("TEMP") + \ + ProductName + @".log" and calls the next constructor. |
![]() | Logger(String) | Constructor: takes over logFilePathName, sets plainMessage to false and calls the next constructor. |
![]() | Logger(Boolean, String) | Constructor: takes over plainMessage and regexFilter, sets the log file to GetEnvironmentVariable("TEMP") + \ + ProductName + @".log" and calls the next constructor. |
![]() | Logger(String, Boolean) | Constructor: takes over logFilePathName and plainMessage, sets regexFilter to "" and calls the next constructor. |
![]() | Logger(String, String, Boolean) | Complete constructor. |
Name | Description of the | |
---|---|---|
![]() | DebugArchiveMaxCount |
Maximum number of archived logs (debug files, etc.).
If there is a surplus, the oldest ones are deleted.
Default: 0 (corresponds to an infinite number).
(Inherited from LoggerBase) |
![]() | DebugArchivingInterval |
Time interval in which the current logging (DebugFile, etc.)
is archived and emptied. Must be set externally.
Default: TimeSpan.Zero.
(Inherited from LoggerBase) |
![]() | IsTimerTriggered |
With True, the logging output is time-controlled.
LoggingTriggerCounter then returns the number of milliseconds
until the next trigger event.
If False, the output is divided by the total number
counting processes are controlled. LoggingTriggerCounter defined
here is the number of counting processes after which the output takes place;
Default: True.
(Inherited from LoggerBase) |
![]() | LoggingTriggerCounter |
Number of milliseconds or number of counting operations until the
next logging output;
Default: 5000.
(Inherited from LoggerBase) |
![]() | LogTargetInfo |
Target path, e.g. for text logs, name and path of the log file.
(Inherited from LoggerBase) |
![]() | MaxBufferLineCount |
Maximum number of lines that a MessageBuffer can hold,
before it is forcibly flushed. This setting works
even with timer-controlled logging.
Default: 10000.
(Inherited from LoggerBase) |
![]() | PlainMessage |
If True, messages are output unchanged; due to asynchrony
of message handling can lead to sequence swaps.
If False, messages are provided with a timestamp and are prefixed with
Flush of the message buffer sorted by timestamp.
Default: False.
(Inherited from LoggerBase) |
![]() | StandardIndent | Indentation of subsequent lines for multi-line messages. Default: 4. |
Name | Description of the | |
---|---|---|
![]() | Dispose |
Public method for cleaning up.
(Inherited from LoggerBase) |
![]() | Dispose(Boolean) |
This can be tidied up if necessary.
(Inherited from LoggerBase) |
![]() | Finalise |
Finaliser: is called by the GarbageCollector.
(Inherited from LoggerBase) |
![]() | Flush |
Ensures that all pending actions are executed.
e.g. filled intermediate tables (buffers)
are processed (flushed).
(Inherited from LoggerBase) |
![]() | HandleInfo |
Callback for logging the message: is created by the responsible InfoController
provided that you have registered in advance.
(Overwrites LoggerBaseHandleInfo(Object, InfoArgs)) |
![]() | Log |
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) |
![]() | OrganiseLoggings |
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)) |
![]() | Show |
Can be overwritten to display the log;
for text files, e.g. via output to the standard editor.
(Overwrites LoggerBaseShow) |
![]() | Stop |
Must be called at the end of processing to stop the timer.
(Inherited from LoggerBase) |
![]() | WriteLog |
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)) |