Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zewa666/redbean_stderror_querylogger
A RedBeanPHP QueryLogger plugin to redirect SQL logs to the STDError output
https://github.com/zewa666/redbean_stderror_querylogger
Last synced: about 12 hours ago
JSON representation
A RedBeanPHP QueryLogger plugin to redirect SQL logs to the STDError output
- Host: GitHub
- URL: https://github.com/zewa666/redbean_stderror_querylogger
- Owner: zewa666
- Created: 2013-09-25T05:09:04.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-25T05:09:15.000Z (about 11 years ago)
- Last Synced: 2023-04-06T14:20:36.683Z (over 1 year ago)
- Language: PHP
- Homepage: http://www.redbeanphp.com/
- Size: 97.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
RedBean STDError Querylogger
=======================This is a plugin for the [RedBeanPHP ORM](http://www.redbeanphp.com/), which utilizes the
provided RedBean_Plugin_QueryLogger Mockup to capture SQL Log events and redirect them
to the STDError output.Usage
------ Download the latest version of [RedBean from Github](https://github.com/gabordemooij/redbean) or
install via Composer.
- Add the file StdErrorLogger.php to the RedBean/Plugin folder
- Either manually require the file or see the [RedBean instructions](http://www.redbeanphp.com/replica) for building your on RB.php file
- In your main file where you setup RedBean add following code to bind the Logger to the event-dispatcher```php
R::getDatabaseAdapter()->addEventListener('sql_exec',new RedBean_Plugin_StdErrorLogger());
```