Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 867 Bytes

sqs_handler.md

File metadata and controls

31 lines (25 loc) · 867 Bytes

SQS Handler - Monolog Extra Bundle

Prerequisite

  • Install & Configure SQSBundle. (see here)
  • Create a Queue on AWS.
  • Configure the queue with SQSBundle. (see here)
  • Configure the SQS Handler with this bundle:
lls_monolog_extra:
    handlers:           # Create custom handlers
        sqs_handler:
            type: sqs
            queue: myQueue  # Queue identifier from SQSBundle
            level: INFO     # Log level (int or label)
            bubble: true    # Whether or not execute next handlers
  • Configure Monolog to use your new handler
monolog:
    handlers:
        sqs:
            type:     service
            id:       lls_monolog_extra.handlers.sqs_handler  # Auto generated service
            priority: 0
  • Enjoy :)