You are here

monolog.services.yml in Monolog 2.x

Same filename and directory in other branches
  1. 8 monolog.services.yml

File

monolog.services.yml
View source
  1. parameters:
  2. # Handlers per channel.
  3. monolog.channel_handlers:
  4. # If not specified use the default handlers.
  5. default: ['syslog']
  6. # Log php channel to web server's error log.
  7. php: ['error_log']
  8. # Enabled processors.
  9. monolog.processors: ['message_placeholder', 'current_user', 'request_uri', 'ip', 'referer', 'filter_backtrace']
  10. # Logger levels.
  11. monolog.level.emergency: 600
  12. monolog.level.alert: 550
  13. monolog.level.critical: 500
  14. monolog.level.error: 400
  15. monolog.level.warning: 300
  16. monolog.level.notice: 250
  17. monolog.level.info: 200
  18. monolog.level.debug: 100
  19. services:
  20. # Monolog handlers.
  21. monolog.handler.browser_console:
  22. class: Monolog\Handler\BrowserConsoleHandler
  23. monolog.handler.chrome_php:
  24. class: Monolog\Handler\ChromePHPHandler
  25. monolog.handler.fire_php:
  26. class: Monolog\Handler\FirePHPHandler
  27. monolog.handler.error_log:
  28. class: Monolog\Handler\ErrorLogHandler
  29. monolog.handler.syslog:
  30. class: Monolog\Handler\SyslogHandler
  31. arguments: ['drupal']
  32. monolog.handler.null:
  33. class: Monolog\Handler\NullHandler
  34. # Monolog processors.
  35. monolog.processor.current_user:
  36. class: Drupal\monolog\Logger\Processor\CurrentUserProcessor
  37. arguments: ['@current_user']
  38. monolog.processor.request_uri:
  39. class: Drupal\monolog\Logger\Processor\RequestUriProcessor
  40. arguments: ['@request_stack']
  41. monolog.processor.referer:
  42. class: Drupal\monolog\Logger\Processor\RefererProcessor
  43. arguments: ['@request_stack']
  44. monolog.processor.ip:
  45. class: Drupal\monolog\Logger\Processor\IpProcessor
  46. arguments: ['@request_stack']
  47. monolog.processor.message_placeholder:
  48. class: Drupal\monolog\Logger\Processor\MessagePlaceholderProcessor
  49. arguments: ['@logger.log_message_parser']
  50. monolog.processor.filter_backtrace:
  51. class: Drupal\monolog\Logger\Processor\ContextKeyFilterProcessor
  52. arguments: [['backtrace']]
  53. monolog.processor.introspection:
  54. class: Drupal\monolog\Logger\Processor\IntrospectionProcessor
  55. monolog.processor.git:
  56. class: Monolog\Processor\GitProcessor
  57. monolog.processor.memory_usage:
  58. class: Monolog\Processor\MemoryUsageProcessor
  59. monolog.processor.memory_peak_usage:
  60. class: Monolog\Processor\MemoryPeakUsageProcessor
  61. monolog.processor.process_id:
  62. class: Monolog\Processor\ProcessIdProcessor
  63. # Monolog formatters.
  64. monolog.formatter.chrome_php:
  65. class: Monolog\Formatter\ChromePHPFormatter
  66. monolog.formatter.elastica:
  67. class: Monolog\Formatter\ElasticaFormatter
  68. monolog.formatter.flowdock:
  69. class: Monolog\Formatter\FlowdockFormatter
  70. monolog.formatter.fluentd:
  71. class: Monolog\Formatter\FluentdFormatter
  72. monolog.formatter.gelf:
  73. class: Monolog\Formatter\GelfMessageFormatter
  74. monolog.formatter.html:
  75. class: Monolog\Formatter\HtmlFormatter
  76. monolog.formatter.json:
  77. class: Monolog\Formatter\JsonFormatter
  78. monolog.formatter.line:
  79. class: Monolog\Formatter\LineFormatter
  80. monolog.formatter.loggly:
  81. class: Monolog\Formatter\LogglyFormatter
  82. monolog.formatter.logstash:
  83. class: Monolog\Formatter\LogstashFormatter
  84. monolog.formatter.mongodb:
  85. class: Monolog\Formatter\MongoDBFormatter
  86. monolog.formatter.normalizer:
  87. class: Monolog\Formatter\NormalizerFormatter
  88. monolog.formatter.scalar:
  89. class: Monolog\Formatter\ScalarFormatter
  90. monolog.formatter.wildfire:
  91. class: Monolog\Formatter\WildfireFormatter
  92. # Should not be needed.
  93. monolog.processor.psr_log_message:
  94. class: Monolog\Processor\PsrLogMessageProcessor
  95. monolog.processor.tag:
  96. class: Monolog\Processor\TagProcessor
  97. monolog.processor.uid:
  98. class: Monolog\Processor\UidProcessor
  99. monolog.processor.web:
  100. class: Monolog\Processor\WebProcessor

Services

Namesort descending Description
monolog.formatter.chrome_php Monolog\Formatter\ChromePHPFormatter
monolog.formatter.elastica Monolog\Formatter\ElasticaFormatter
monolog.formatter.flowdock Monolog\Formatter\FlowdockFormatter
monolog.formatter.fluentd Monolog\Formatter\FluentdFormatter
monolog.formatter.gelf Monolog\Formatter\GelfMessageFormatter
monolog.formatter.html Monolog\Formatter\HtmlFormatter
monolog.formatter.json Monolog\Formatter\JsonFormatter
monolog.formatter.line Monolog\Formatter\LineFormatter
monolog.formatter.loggly Monolog\Formatter\LogglyFormatter
monolog.formatter.logstash Monolog\Formatter\LogstashFormatter
monolog.formatter.mongodb Monolog\Formatter\MongoDBFormatter
monolog.formatter.normalizer Monolog\Formatter\NormalizerFormatter
monolog.formatter.scalar Monolog\Formatter\ScalarFormatter
monolog.formatter.wildfire Monolog\Formatter\WildfireFormatter
monolog.handler.browser_console Monolog\Handler\BrowserConsoleHandler
monolog.handler.chrome_php Monolog\Handler\ChromePHPHandler
monolog.handler.error_log Monolog\Handler\ErrorLogHandler
monolog.handler.fire_php Monolog\Handler\FirePHPHandler
monolog.handler.null Monolog\Handler\NullHandler
monolog.handler.syslog Monolog\Handler\SyslogHandler
monolog.processor.current_user Drupal\monolog\Logger\Processor\CurrentUserProcessor
monolog.processor.filter_backtrace Drupal\monolog\Logger\Processor\ContextKeyFilterProcessor
monolog.processor.git Monolog\Processor\GitProcessor
monolog.processor.introspection Drupal\monolog\Logger\Processor\IntrospectionProcessor
monolog.processor.ip Drupal\monolog\Logger\Processor\IpProcessor
monolog.processor.memory_peak_usage Monolog\Processor\MemoryPeakUsageProcessor
monolog.processor.memory_usage Monolog\Processor\MemoryUsageProcessor
monolog.processor.message_placeholder Drupal\monolog\Logger\Processor\MessagePlaceholderProcessor
monolog.processor.process_id Monolog\Processor\ProcessIdProcessor
monolog.processor.psr_log_message Monolog\Processor\PsrLogMessageProcessor
monolog.processor.referer Drupal\monolog\Logger\Processor\RefererProcessor
monolog.processor.request_uri Drupal\monolog\Logger\Processor\RequestUriProcessor
monolog.processor.tag Monolog\Processor\TagProcessor
monolog.processor.uid Monolog\Processor\UidProcessor
monolog.processor.web Monolog\Processor\WebProcessor