/// <summary>
 /// This clears all output flags.
 /// </summary>
 public void ClearAllOutputFlags()
 {
     OutputFlags = TwilightOutputs.None;
 }
 /// <summary>
 /// This sets if we allow textbox output
 /// </summary>
 /// <param name="isAllowed">Whether if textbox output is allowed or not.</param>
 public void SetTextBoxOutput(bool isAllowed)
 {
     if (isAllowed)
         OutputFlags = OutputFlags | TwilightOutputs.TextBox;
     else
         OutputFlags = OutputFlags & ~TwilightOutputs.TextBox;
 }
 /// <summary>
 /// This sets if we allow internet output
 /// </summary>
 /// <param name="isAllowed">Whether if internet output is allowed or not.</param>
 public void SetInternetOutput(bool isAllowed)
 {
     if (isAllowed)
         OutputFlags = OutputFlags | TwilightOutputs.InternetStream;
     else
         OutputFlags = OutputFlags & ~TwilightOutputs.InternetStream;
 }
 /// <summary>
 /// This sets if we allow file output
 /// </summary>
 /// <param name="isAllowed">Whether if file output is allowed or not.</param>
 public void SetFileOutput(bool isAllowed)
 {
     if (isAllowed)
         OutputFlags = OutputFlags | TwilightOutputs.File;
     else
         OutputFlags = OutputFlags & ~TwilightOutputs.File;
 }
 /// <summary>
 /// This sets if we allow database output
 /// </summary>
 /// <param name="isAllowed">Whether if database output is allowed or not.</param>
 public void SetDatabaseOutput(bool isAllowed)
 {
     if (isAllowed)
         OutputFlags = OutputFlags | TwilightOutputs.Database;
     else
         OutputFlags = OutputFlags & ~TwilightOutputs.Database;
 }
 /// <summary>
 /// This resets the logger.
 /// </summary>
 public void ResetLogger()
 {
     OutputFlags = TwilightOutputs.None;
     LoggedEvents.Clear();
 }