/// <summary>
        /// Constructor
        /// </summary>
        public clsMyEMSLMTSFileCacher(string serverName, clsLogTools.LogLevels logLevel, string logDbConnectionString)
        {
            if (string.IsNullOrWhiteSpace(serverName))
            {
                this.Perspective = ePerspective.Server;
                this.MTSServer = Environment.MachineName;
            }
            else
            {
                this.Perspective = ePerspective.Client;
                this.MTSServer = serverName;
            }

            this.LogLevel = logLevel;
            mLogDBConnectionString = logDbConnectionString;

            Initialize();
        }
        private void ReportMessage(string message, clsLogTools.LogLevels logLevel, bool logToDB)
        {
            clsLogTools.WriteLog(clsLogTools.LoggerTypes.LogFile, logLevel, message);

            if (logToDB)
                clsLogTools.WriteLog(clsLogTools.LoggerTypes.LogDb, logLevel, message);

            OnMessage(new MessageEventArgs(message));
        }
 private void ReportMessage(string message, clsLogTools.LogLevels logLevel)
 {
     ReportMessage(message, logLevel, logToDB: false);
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <remarks>If "serverName" is blank, then will auto-set Perspective to ePerspective.Server</remarks>
 public clsMyEMSLMTSFileCacher(string serverName, clsLogTools.LogLevels logLevel)
     : this(serverName, logLevel, LOG_DB_CONNECTION_STRING)
 {
 }