ILoggerWrapper.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #region Apache License
  2. //
  3. // Licensed to the Apache Software Foundation (ASF) under one or more
  4. // contributor license agreements. See the NOTICE file distributed with
  5. // this work for additional information regarding copyright ownership.
  6. // The ASF licenses this file to you under the Apache License, Version 2.0
  7. // (the "License"); you may not use this file except in compliance with
  8. // the License. You may obtain a copy of the License at
  9. //
  10. // http://www.apache.org/licenses/LICENSE-2.0
  11. //
  12. // Unless required by applicable law or agreed to in writing, software
  13. // distributed under the License is distributed on an "AS IS" BASIS,
  14. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. // See the License for the specific language governing permissions and
  16. // limitations under the License.
  17. //
  18. #endregion
  19. using System;
  20. using log4net;
  21. using log4net.Core;
  22. using log4net.Repository;
  23. namespace log4net.Core
  24. {
  25. /// <summary>
  26. /// Base interface for all wrappers
  27. /// </summary>
  28. /// <remarks>
  29. /// <para>
  30. /// Base interface for all wrappers.
  31. /// </para>
  32. /// <para>
  33. /// All wrappers must implement this interface.
  34. /// </para>
  35. /// </remarks>
  36. /// <author>Nicko Cadell</author>
  37. public interface ILoggerWrapper
  38. {
  39. /// <summary>
  40. /// Get the implementation behind this wrapper object.
  41. /// </summary>
  42. /// <value>
  43. /// The <see cref="ILogger"/> object that in implementing this object.
  44. /// </value>
  45. /// <remarks>
  46. /// <para>
  47. /// The <see cref="ILogger"/> object that in implementing this
  48. /// object. The <c>Logger</c> object may not
  49. /// be the same object as this object because of logger decorators.
  50. /// This gets the actual underlying objects that is used to process
  51. /// the log events.
  52. /// </para>
  53. /// </remarks>
  54. ILogger Logger { get; }
  55. }
  56. }