• 757-551-6373

Lorna Mitchell: Logging to Stdout with Monolog

Lorna Mitchell has a quick post today showing how you can use the popular Monolog logging library to log messages and data to stdout, the standard output stream of whatever is executing the script.

My worker scripts have really basic logging (as in, they echo when something happens, and I can see those in the supervisord logs). Which is kind of okay, but I wanted to at least add timestamps in to them, and maybe send emails when something REALLY bad happened. I’m a huge fan of Monolog so I grabbed that, but it wasn’t immediately obvious which of the many and varied options I would need for this fairly simple addition. It turns out that the right thing to use is the ErrorLogHandler.

She includes a few lines of sample code that use the “ErrorLogger” to output the message. It includes the log level, a timestamp, the message itself and any additional contextual information you pass in.

Link: http://www.lornajane.net/posts/2014/logging-to-stdout-with-monolog

Community News: Packagist Latest Releases for 06.09.2014

Recent releases from the Packagist:

Latest PHP Releases

Recent releases from the Packagist PHP News:

JetBrains.com: Live Webinar: PHP Annotations – They exist! Join us June 11th.

JetBrains has announced a webinar they’ll be holding on June 11th at 4:00pm CEST (10am EDT) with host Rafael Dohms covering annotations in PHP.

Annotations are more than PHPDoc comments, they’re a fully-featured way of including additional information alongside your code. We might have rejected an RFC to add support into the PHP core, but the community has embraced this tool anyway! This session shows you who is doing what with annotations, and will give you some ideas on how to use the existing tools in your own projects to keep life simple. Developers, architects and anyone responsible for the technical direction of an application should attend this session.

Space for the webinar is limited, so if you’re interested in attending be sure you sign up quickly. There’s no charge for the event, you’ll just need to provide a bit of information prior to signup.

Link: http://blog.jetbrains.com/blog/2014/06/03/live-webinar-php-annotations-they-exist-join-us-june-11th

Pinterest Tests Do-It-Yourself Promoted Pins, New Analytics

pinterest_1406054 Pinterest Tests Do-It-Yourself Promoted Pins, New Analytics

Pinterest is beta testing do-it-yourself Promoted Pins and a new analytics offering. Last month, the company announced that it was rolling out Promoted Pins from a group of big partner brands, but with the new test, businesses of any size can promote their own pins.

The do-it-yourself pins are available on a cost-per-cilck basis through ads.pinterest.com. For now, Pinterest is testing them with a few businesses including vineyard vines, Nicole Miller, and Shutterfly, but will make them available to everyone else in time. You can sign up to participate here.

Promoted Pins appear in search and category feeds.

The company is also refreshing its analytics offering with more detailed insights.

“In addition to seeing what people are Pinning from your website, you’ll also be able to see how Pins from your Pinterest profile are performing,” says Pinterest’s Jason Costa. “We’ll tell you which of your Pins and boards are driving the most impressions, clicks and repins. We’ll also clue you in to Pins that drive engagement across different platforms.”

analytics_1406054 Pinterest Tests Do-It-Yourself Promoted Pins, New Analytics

They’re rolling this out slowly to “make sure everything works,” but if you have a business account, you should get access to it soon.

A couple weeks ago, Pinterest announced that it is working with a small group of marketing technology companies, including Salesforce, Hootsuite, Spredfast, Percolate, Piqora, Curalate, and Tailwind, who are getting automated access to public dat through Pinterest’s Business Insights API. Partners were encouraged to add insights that aren’t available in Pinterest’s own offering.

Both of Pinterest’s latest announcements may become quite significant to marketers as the company uses recent funding to expand its search offerings.

Images via Pinterest

Creative Solutions for Extraordinary Clients