mCore™ .NET SMS Library can create a log file of its process steps and errors. The log file is created by the name 'mCoreLib.log' and is stored in the folder specified by the LogFolderPath property. The LogType property sets the log type to one of the following:
No Log
Only errors are logged
Errors and events (process steps) are logged.
The LogType property value is of type mCore.LogType
Namespace: mCore
Assembly: mCoreLib (in mCoreLib.dll)
Enabling of log file can slow down the working of mCore™ if the log file is allowed to grow uncontrolled. Monitoring of the property LogSize and use of ClearLog method accordingly is recommended to ensure that the log file does not grow to a very large size.
| 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.LogFolderPath Property
mCore.SMS.LogSize Property
mCore.SMS.DebugMode Property
mCore.SMS.ClearLog Method