EmptyLogger.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. using System;
  2. using Xilium.CefGlue.Helpers.Log;
  3. namespace Xilium.CefGlue.WPF.Helpers.Log
  4. {
  5. public class EmptyLogger : ILogger
  6. {
  7. public EmptyLogger(string name)
  8. {
  9. }
  10. public void TraceException(string message, Exception exception)
  11. {
  12. }
  13. public void Trace(string message, params object[] args)
  14. {
  15. }
  16. public void DebugException(string message, Exception exception)
  17. {
  18. }
  19. public void Debug(string message, params object[] args)
  20. {
  21. }
  22. public void ErrorException(string message, Exception exception)
  23. {
  24. }
  25. public void Error(string message, params object[] args)
  26. {
  27. }
  28. public void FatalException(string message, Exception exception)
  29. {
  30. }
  31. public void Fatal(string message, params object[] args)
  32. {
  33. }
  34. public void InfoException(string message, Exception exception)
  35. {
  36. }
  37. public void Info(string message, params object[] args)
  38. {
  39. }
  40. public void WarnException(string message, Exception exception)
  41. {
  42. }
  43. public void Warn(string message, params object[] args)
  44. {
  45. }
  46. public bool IsTraceEnabled
  47. {
  48. get { return false; }
  49. }
  50. public bool IsDebugEnabled
  51. {
  52. get { return false; }
  53. }
  54. public bool IsErrorEnabled
  55. {
  56. get { return false; }
  57. }
  58. public bool IsFatalEnabled
  59. {
  60. get { return false; }
  61. }
  62. public bool IsInfoEnabled
  63. {
  64. get { return false; }
  65. }
  66. public bool IsWarnEnabled
  67. {
  68. get { return false; }
  69. }
  70. }
  71. }