Goals
• Errors and exceptions
• Server and application status
• Performance
• Usability
Slide 7
Slide 7 text
Strategy
• Log exceptions and errors
• Monitor server and application status
• Monitor performance
• E-mail us if something's out of whack
• Collect metrics on usability
Slide 8
Slide 8 text
An even better strategy
• Log everything
• Monitor and record server and application status
• Monitor and record performance
• Message and call us if something's out of whack
• Collect and present metrics on usability
Slide 9
Slide 9 text
Tools
• Graylog2
• New Relic
• Statsd + Graphite
Slide 10
Slide 10 text
Logging
Slide 11
Slide 11 text
Logging
• Log everything
• Use log levels and channels to differentiate
• Use PSR-3
• Use a framework with logging support
Slide 12
Slide 12 text
Logging in Symfony
• Ships with Monolog, PSR-3 compatible
• Logs a lot, at various levels
• Add gelf-php, and configure the GelfHandler
Slide 13
Slide 13 text
Logging in Symfony
"require": {
"mlehner/gelf-php": "~1.0",
}