PageRenderTime 15ms CodeModel.GetById 7ms app.highlight 3ms RepoModel.GetById 1ms 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
18
19namespace Microsoft.Practices.Composite.Logging
20{
21    /// <summary>
22    /// Defines a simple logger fa??ade to be used by the Composite Application Library.
23    /// </summary>
24    public interface ILoggerFacade
25    {
26        /// <summary>
27        /// Write a new log entry with the specified category and priority.
28        /// </summary>
29        /// <param name="message">Message body to log.</param>
30        /// <param name="category">Category of the entry.</param>
31        /// <param name="priority">The priority of the entry.</param>
32        void Log(string message, Category category, Priority priority);
33    }
34}