LogEngine.cs 622 B

123456789101112131415161718192021222324
  1. using System;
  2. namespace Flyinsono.Client.Test
  3. {
  4. /// <summary>
  5. /// The log engine which provider the abilaity to Write log into one file or server.
  6. /// </summary>
  7. public abstract class LogEngine: IDisposable
  8. {
  9. /// <summary>
  10. /// Write the log
  11. /// </summary>
  12. /// <param name="level">Log's level see <see cref="LogLevel"/></param>
  13. /// <param name="msg">The message to write</param>
  14. public abstract void Write(LogLevel level, string msg);
  15. public virtual void Dispose()
  16. {
  17. //Nothing.
  18. }
  19. }
  20. }