Code Monkey home page Code Monkey logo

cakephp-monolog's People

Contributors

graemetait avatar jadb avatar tsjost avatar vincent-richard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cakephp-monolog's Issues

Plugin not recognized?

Hi, using the specifics of the installation tutorial, CakePHP 2.10.x won't recognize the plugin?
screen shot 2018-04-09 at 9 43 02 am

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": "*"
	},

Could not load class MonologLoggerLog

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

Namespace violation

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.