The ClearLog method clears the log file 'mCoreLib.log' located in the folder
specified by the LogFolderPath property.
Returns Boolean value True if clearing is successful or else returns Boolean
value False.
Namespace: mCore
Assembly: mCoreLib (in mCoreLib.dll)
| Name | Description |
| ClearLog () | Removes all the entries from the log file mCoreLib.log |
| ClearLog (KeepLinesInLog As Integer) | Removes all lines from the log file mCoreLib.log except the latest number of lines defined by KeepLinesInLog. |
| 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.LogSize Property
mCore.SMS.DebugMode Property