DOMConfiguratorAttribute.cs 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. // .NET Compact Framework 1.0 has no support for reading assembly attributes
  20. #if !NETCF
  21. using System;
  22. using System.Reflection;
  23. using System.IO;
  24. using log4net.Util;
  25. using log4net.Repository;
  26. using log4net.Repository.Hierarchy;
  27. namespace log4net.Config
  28. {
  29. /// <summary>
  30. /// Assembly level attribute to configure the <see cref="XmlConfigurator"/>.
  31. /// </summary>
  32. /// <remarks>
  33. /// <para>
  34. /// <b>AliasDomainAttribute is obsolete. Use AliasRepositoryAttribute instead of AliasDomainAttribute.</b>
  35. /// </para>
  36. /// <para>
  37. /// This attribute may only be used at the assembly scope and can only
  38. /// be used once per assembly.
  39. /// </para>
  40. /// <para>
  41. /// Use this attribute to configure the <see cref="XmlConfigurator"/>
  42. /// without calling one of the <see cref="M:XmlConfigurator.Configure()"/>
  43. /// methods.
  44. /// </para>
  45. /// </remarks>
  46. /// <author>Nicko Cadell</author>
  47. /// <author>Gert Driesen</author>
  48. [AttributeUsage(AttributeTargets.Assembly)]
  49. [Serializable]
  50. [Obsolete("Use XmlConfiguratorAttribute instead of DOMConfiguratorAttribute")]
  51. public sealed class DOMConfiguratorAttribute : XmlConfiguratorAttribute
  52. {
  53. }
  54. }
  55. #endif // !NETCF