Click or drag to resize

QsLogAsync Class

"Async" logger class evolved to use a cache. The main goal is to reduce the number of I/O operations and improve performance. Instead of writing to the file system every time a message is logged, the logger writes to a buffer. Then a timer flushes the buffer to a file at regular intervals.
Inheritance Hierarchy
SystemObject
  QsInformatica.UtilsQsLogAsync

Namespace: QsInformatica.Utils
Assembly: QsInformatica.Utils (in QsInformatica.Utils.dll) Version: 27.2.0-beta
Syntax
public sealed class QsLogAsync : IQsLog

The QsLogAsync type exposes the following members.

Properties
 NameDescription
Public propertyBackupModeEnabled Delete/backup the log file on
Public propertyDeleteOnExit 
Public propertyFullLogFileName Log file full path.
Public propertyLogType The log type.
Public propertyName 
Public propertyPutAppDomainName 
Public propertyPutCategory 
Public propertyPutMessageType 
Public propertyPutTimeStamp 
Public propertyWornigMessageText 
Top
Methods
 NameDescription
Public methodClose 
Public methodClose(Boolean) 
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetEntriesCount 
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodShowLog 
Public methodShowLogDialog 
Public methodShowLogDialog(IWin32Window) 
Public methodShowLogDialog(String, String) 
Public methodShowLogDialog(IWin32Window, String, String) 
Public methodShowLogDialog(String, String, String) 
Public methodShowLogDialog(IWin32Window, String, String, String) 
Public methodShowLogDialog(IWin32Window, String, String, String, String, String) 
Public methodShowMessageWarning 
Public methodShowMessageWarning(IWin32Window) 
Public methodShowMessageWarning(String) 
Public methodShowMessageWarning(IWin32Window, String) 
Public methodShowMessageWarning(IWin32Window, MessageBoxIcon) 
Public methodShowMessageWarning(String, MessageBoxIcon) 
Public methodShowMessageWarning(IWin32Window, String, MessageBoxIcon) 
Public methodShutDown 
Public methodStart 
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodWrite(String) Writes the specified message to the log file. It uses default category and log type.
Public methodWrite(String, LogMessageTypeEnum) Writes the specified message to the log file. It uses default category.
Public methodWrite(String, String) Writes the specified message to the log file. It uses default log type.
Public methodWrite(String, String, LogMessageTypeEnum) Writes the specified message to the log file.
Top
Fields
 NameDescription
Public fieldStatic memberBatchInterval Logging time interval (default 1 sec)
Public fieldStatic memberLogToConsole Add an extra log to the Trace
Top
See Also