PageRenderTime 46ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/V1/trunk/Source/CAL/Composite/Logging/ILoggerFacade.cs

#
C# | 34 lines | 7 code | 2 blank | 25 comment | 0 complexity | 6480e78162b56b609b64c838b18d79fb MD5 | raw file
  1. //===============================================================================
  2. // Microsoft patterns & practices
  3. // Composite Application Guidance for Windows Presentation Foundation
  4. //===============================================================================
  5. // Copyright (c) Microsoft Corporation. All rights reserved.
  6. // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
  7. // OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
  8. // LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  9. // FITNESS FOR A PARTICULAR PURPOSE.
  10. //===============================================================================
  11. // The example companies, organizations, products, domain names,
  12. // e-mail addresses, logos, people, places, and events depicted
  13. // herein are fictitious. No association with any real company,
  14. // organization, product, domain name, email address, logo, person,
  15. // places, or events is intended or should be inferred.
  16. //===============================================================================
  17. namespace Microsoft.Practices.Composite.Logging
  18. {
  19. /// <summary>
  20. /// Defines a simple logger fa??ade to be used by the Composite Application Library.
  21. /// </summary>
  22. public interface ILoggerFacade
  23. {
  24. /// <summary>
  25. /// Write a new log entry with the specified category and priority.
  26. /// </summary>
  27. /// <param name="message">Message body to log.</param>
  28. /// <param name="category">Category of the entry.</param>
  29. /// <param name="priority">The priority of the entry.</param>
  30. void Log(string message, Category category, Priority priority);
  31. }
  32. }