LoggerConfigurator.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * log4php is a PHP port of the log4j java logging package.
  4. *
  5. * <p>This framework is based on log4j (see {@link http://jakarta.apache.org/log4j log4j} for details).</p>
  6. * <p>Design, strategies and part of the methods documentation are developed by log4j team
  7. * (Ceki Gülcü as log4j project founder and
  8. * {@link http://jakarta.apache.org/log4j/docs/contributors.html contributors}).</p>
  9. *
  10. * <p>PHP port, extensions and modifications by VxR. All rights reserved.<br>
  11. * For more information, please see {@link http://www.vxr.it/log4php/}.</p>
  12. *
  13. * <p>This software is published under the terms of the LGPL License
  14. * a copy of which has been included with this distribution in the LICENSE file.</p>
  15. *
  16. * @package log4php
  17. * @subpackage spi
  18. */
  19. /**
  20. * @ignore
  21. */
  22. if (!defined('LOG4PHP_DIR')) define('LOG4PHP_DIR', dirname(__FILE__));
  23. /**
  24. * Special level value signifying inherited behaviour. The current
  25. * value of this string constant is <b>inherited</b>.
  26. * {@link LOG4PHP_LOGGER_CONFIGURATOR_NULL} is a synonym.
  27. */
  28. define('LOG4PHP_LOGGER_CONFIGURATOR_INHERITED', 'inherited');
  29. /**
  30. * Special level signifying inherited behaviour, same as
  31. * {@link LOG4PHP_LOGGER_CONFIGURATOR_INHERITED}.
  32. * The current value of this string constant is <b>null</b>.
  33. */
  34. define('LOG4PHP_LOGGER_CONFIGURATOR_NULL', 'null');
  35. /**
  36. * Implemented by classes capable of configuring log4php using a URL.
  37. *
  38. * @author VxR <vxr@vxr.it>
  39. * @version $Revision: 1.1 $
  40. * @package log4php
  41. * @subpackage spi
  42. * @since 0.5
  43. * @abstract
  44. */
  45. class LoggerConfigurator {
  46. /**
  47. * Interpret a resource pointed by a <var>url</var> and configure accordingly.
  48. *
  49. * The configuration is done relative to the <var>repository</var>
  50. * parameter.
  51. *
  52. * @param string $url The URL to parse
  53. * @param LoggerHierarchy &$repository The hierarchy to operation upon.
  54. */
  55. function doConfigure($url, &$repository)
  56. {
  57. return;
  58. }
  59. }
  60. ?>