Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load class MonologLoggerLog #6

Closed
stevenmc opened this issue Aug 28, 2013 · 1 comment
Closed

Could not load class MonologLoggerLog #6

stevenmc opened this issue Aug 28, 2013 · 1 comment

Comments

@stevenmc
Copy link

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

@jadb
Copy link
Owner

jadb commented Aug 29, 2013

@stevenmc

You seem to have misconfigured your logger.

Have you explicitly passed the engine key with a Monolog.MonologLogger value when configuring it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants