jadb / cakephp-monolog Goto Github PK
View Code? Open in Web Editor NEWCakePHP wrapper for monolog
Home Page: http://jadb.io
CakePHP wrapper for monolog
Home Page: http://jadb.io
You seem to violate the namespace of composer:
cakephp/monolog
The vendor name belongs to CakePHP.
See the composer docs:
If you don't know what to use as a vendor name, your GitHub username is usually a good bet. While package names are case insensitive, the convention is all lowercase and dashes for word separation.
So in your case I recommend
jadb/cakephp-monolog
as per convention.
As we all do ;)
You should then delete the wrongly created packagist entry. And resubmit the correct one.
I am getting the following error
Could not load class MonologLoggerLog
Possibly the reason is in the changes described here
http://book.cakephp.org/2.0/en/appendices/2-4-migration-guide.html#logging
Monolog needs to be updated in order to use more recent handlers.
Hi, using the specifics of the installation tutorial, CakePHP 2.10.x won't recognize the plugin?
Code used:
CakePlugin::load('Monolog');
CakeLog::config('debug', array(
'engine' => 'Monolog.Monolog',
'channel' => 'app',
'handlers' => array(
'Stream' => array(
LOGS . 'debug.log',
'formatters' => array(
'Line' => array("%datetime% %channel% %level_name%: %message%\n")
)
)
)
));
And in app/composer.json:
"require": {
"php": ">=5.3.0",
"ext-mcrypt": "*",
"cakephp/cakephp": "~2.9",
"jadb/cakephp-monolog": "*"
},
Following the install instructions with PHP Version 5.4.9-4ubuntu2.2 (Ubuntu 13.04) CakePHP 2.4.0-RC1 I got the following error:
Could not load class MonologLoggerLog
Error: An Internal Error Has Occurred.
Stack Trace
CORE/Cake/Log/LogEngineCollection.php line 42 → LogEngineCollection::_getLogger(string)
CORE/Cake/Log/CakeLog.php line 199 → LogEngineCollection->load(string, array)
APP/Config/monolog.php line 28 → CakeLog::config(string, array)
APP/Config/bootstrap.php line 27 → require(string)
CORE/Cake/Core/Configure.php line 92 → include(string)
CORE/Cake/bootstrap.php line 177 → Configure::bootstrap(boolean)
APP/webroot/index.php line 82 → include(string)
This was resolved by changing Lib/Log/Engine/MonologLogger.php from:
class MonologLogger extends BaseLog {
to:
class MonologLoggerLog extends BaseLog {
I don't want to do a pull request in-case this causes problems for other environments. Just an FYI.
Thank you,
Steven
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.