The LogSize property gets the size of the log file in number of
lines. This property can be used to monitor the size of the log file and
clearing it accordingly.
Namespace: mCore
Assembly: mCoreLib (in mCoreLib.dll)
| Visual Basic |
|
Public Class MyClass |
| C# |
| class MyClass { public mCore.SMS objSMS = new mCore.SMS(); public static void InitializeLog() { try { objSMS.LogFolderPath = "C:\\MyLogs"; if (objSMS.LogSize > 500) { objSMS.ClearLog(10); } objSMS.LogType = mCore.LogType.ErrorEventLog; } catch
(mCore.GeneralException e) |
mCore.SMS.LogType Property
mCore.SMS.LogFolderPath Property
mCore.SMS.DebugMode Property
mCore.SMS.ClearLog Method