LoggerInterface.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. namespace ThurData\Servers\KerioEmail\Core\Interfaces;
  3. /**
  4. *
  5. * @autor ThurData <info@thrudata.ch>
  6. */
  7. interface LoggerInterface
  8. {
  9. /**
  10. * @param string $message
  11. * @param array $context
  12. * @return bool
  13. */
  14. public function debug($message, array $context = []);
  15. /**
  16. * @param string $message
  17. * @param array $context
  18. * @return bool
  19. */
  20. public function error($message, array $context = []);
  21. /**
  22. * @param string $message
  23. * @param array $context
  24. * @return bool
  25. */
  26. public function warning($message, array $context = []);
  27. /**
  28. * @param string $message
  29. * @param array $context
  30. * @return bool
  31. */
  32. public function err($message, array $context = []);
  33. /**
  34. * @param string $message
  35. * @param array $context
  36. * @return bool
  37. */
  38. public function warn($message, array $context = []);
  39. /**
  40. * @param string $message
  41. * @param array $context
  42. * @return bool
  43. */
  44. public function addDebug($message, array $context = []);
  45. /**
  46. * @param string $message
  47. * @param array $context
  48. * @return bool
  49. */
  50. public function addWarning($message, array $context = []);
  51. /**
  52. * @param string $message
  53. * @param array $context
  54. * @return bool
  55. */
  56. public function addError($message, array $context = []);
  57. }