The purpose of this project is to have a simple framework for different logging adapters.
Originally developed as Hackathon_Logger but moved forewards and will now actively supported by firegento community.
See the Usage Chapter below to see how to use it.
Please be aware of the following restrictions:
- The ProxiBlue NewRelic extension uses the same logic to log to NewRelic and will block FireGento Logger extension unless you revise its config.xml file.
- Install modman
- Use the command from your Magento installation folder:
modman clone https://github.com/firegento/firegento-logger
- Install composer
- Install Magento Composer
- Create a composer.json into your project like the following sample:
{
...
"require": {
"firegento/logger":"*"
},
"repositories": [
{
"type": "composer",
"url": "http://packages.firegento.com"
}
],
"extra":{
"magento-root-dir": "./"
}
}
- Then from your
composer.json
folder:php composer.phar install
orcomposer install
- You can copy the files from the folders of this repository to the same folders of your installation
- Clear the cache, logout from the admin panel and then login again.
- Remove all extension files from your Magento installation
Configure the different loggers in System > Configuration > Advanced > Firegento Logger
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
Complete, working logger interfaces:
- File (Magento default)
- File (Advanced Format)
- File (JSON)
- Database
- XMPP (Jabber, Google Talk)
- Graylog2
- Loggly (UDP/HTTPS)
- Syslog
- RSyslog (UDP)
- Papertrail (UDP)
- Chromelogger
- Logstash
- Redis
- Sentry
- Airbrake
It is possible to use Multiple-Targets!
- Log Live View (Like a tail in terminal)
- Report View (Shows content of a report in backend)
- Manage modules log output (enable/disable log messages of extensions)
For XMPP we use https://github.com/cweiske/xmpphp. For ChromeLogger we use https://github.com/ccampbell/chromephp
Make a fork, commit to develop branch and make a pull request
- There are combinations that don't work together
- You can't use Chromelogger with the embeded queueing model, because the queueing takes place after the response is send to the client ** You can't use Papertrail with the embeded queueing model