protected virtual void ThreadTerminate(object sender, EventArgs e)
 {
     lock (this)
     {
         FLogFile = null;
     }
 }
        public virtual void Write(string aText)
        {
            FixedLengthLogFile lLogFile = FLogFile;

            if (lLogFile != null)
            {
                lLogFile.Write(aText);
            }
            else
            {
                throw new ArgumentException("Log must be active before write command is executed");
            }
        }