Seldaek / monolog

Sends your logs to files, sockets, inboxes, databases and various web services
https://seldaek.github.io/monolog/
MIT License
20.99k stars 1.9k forks source link

Add php-console handler #416

Closed barbushin closed 9 years ago

barbushin commented 10 years ago

Hi

There is a Google Chrome extension - PHP Console https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef with ~60k active, server side library https://github.com/barbushin/php-console, and having integration modules with Symfony, Yii, Silex, Laravel and Drupal frameworks.

Is it possible to develop monolog handler for php-console? I can do my best to help you with it.

Thank you!

fancoder commented 10 years ago

That's great idea. I'm using PHP console extension in last two years - it's great. Some programmers I know also using it. It's very popular. PHP console handler will be very nice addition to Monolog :+1:

gbezyuk commented 10 years ago

+1

mdiyakov commented 10 years ago

+1

hver commented 10 years ago

There is a ChromePHP handler in Monolog which we use with "Chrome Logger extension" (which is a rewrite of the ChromePHP extension). Maybe you can extend or use the existing handler as an example for the PHP console handler.

barbushin commented 10 years ago

@hver Thanks for advice. I'll try to develop handler by myself in next week. How do you think what is the chance that @Seldaek will accept my Pull request?

Seldaek commented 10 years ago

@barbushin feel free to take a try at it, if it's not too much code I am likely to take it in, but yeah we already have the ChromePHPHandler and the BrowserConsoleHandler which work for chrome so I don't know if we really need a third one. Maybe another option is that you provide the monolog handler as part of your library, since you already have a psr-3 logger in there, it could be an alternative to your logger for people using monolog? Because I imagine the handler will require your library anyway.

barbushin commented 10 years ago

@Seldaek Hi. Please check PHP Console features list

https://github.com/barbushin/php-console/wiki/PHP-Console-extension-features - client side https://github.com/barbushin/php-console/wiki/PHP-Console-server-features - server side

There is much more functionality and it's more stable than ChromePHP and Chrome Logger.

Sorry that I named my tool php-console, as your https://github.com/Seldaek/php-console. barbushin/php-console was announced 09.10.2010(hosted first on Google Code), when I was choosing name and googled php-console I did not saw Seldaek/php-console in search result.

Seldaek commented 10 years ago

No worries about the name clash, it happens, and I don't even know if mine was public back then.

Regarding the features I have no doubt it's different than the others but people can only use basic features via monolog I guess since monolog is made for a subset of the functionality you have.

barbushin commented 9 years ago

@Seldaek Hi, Jordi. I submitted pull request https://github.com/Seldaek/monolog/pull/533 with PHPConsoleHandler and PHPConsoleHandlerTest. I'm very worried that after 3 weeks there is no reaction from you.

I know you're very busy, but please just tell me if it's everything okay with https://github.com/Seldaek/monolog/pull/533 or there is something I can improve?

Thank you

stof commented 9 years ago

this should be closed as #533 got merged.