Newsfeeds Drupal Developer's blog: Monolog: namespaced logger?

Planet Drupal - 21 January 2018 - 11:47am
Using monolg library and monolog-cascade extension you can't configure the "namespaced" loggers. What does it mean? Imagine you have tons of classes and you need to log information from them into a log file. There is nothing special in this. Just define loggers with the needed handler(s) and instantiate them directly in a place where you want them to use with a help of monolog-cascade. It means in your monolog-cascade config file you have to define needed loggers in advance and you have to reference needed loggers by their names. But what if you need an additional logger (with absolutely different handlers/processors) for some of the classes? Will you go through all the classes and change logger names where you instantiate them? I think it doesn't look like a good idea when a small requirement (for instance, change the log file name for records from a bunch of classes) leads to edits in an application code. It's something that must be configurable and that's why I decided to write a tiny library called monolog-cascade-namespaced.
Read more »
Categories: Drupal

DrupalEasy: Testing a local Drupal site emails with Lando and Mailhog

Planet Drupal - 21 January 2018 - 9:29am

Over the past few months, I've been evaluating three Docker-based local development environments trying to figure out which is best not only for me, but also for students of our long-form Managing Professional Drupal Development Workflows with Pantheon (next semester starts February 17) and Drupal Career Online (March 26) classes.

I've been test driving Docksal (actually, I've been using it for over a year), DDEV Community, and Lando (I'm a recovering Kalabox user) trying to figure out where the "sweet spot" is for flexibility, ease of use, documentation, Windows-compatibility (we routinely have students on Windows machines), performance, and some other criteria.

I recently stumbled upon a cool open source project (thanks Brian!) called Mailhog that makes it dead easy to test outgoing emails from a local development environment. While I tested it on Lando, both Docksal and DDEV both support Mailhog and have supporting documentation here and here

The general idea of Mailhog is that it acts as a local STMP server that by default, doesn't send emails to the addressed recipients. Rather, it includes a clean UI that allows the developer to view outgoing emails. 

Getting Mailhog up-and-running in an existing Lando site is quite easy. Simply add the following to your .lando.yml


    type: mailhog
      - appserver

Then, run "lando rebuild". Caution should be used when using this command, as while most services retain their data during a rebuild, some may not. So far, I can confirm that my databases come through just fine. 

After rebuilding, you're just about done. When you run "lando start" the next time, you'll see a new set of URLs for the local Mailhog UI (you can also get this information via "lando info").



On your local Drupal site, if you're using the SMTP module or another SMTP-based sending solution, be sure to disable it:



Then, sending an email from a local contact form (screenshot shows a local copy of



Results in this in the Mailhog UI:



Then, if you want to "release" a message to its intended recipient, Mailhog provides you the option to do that as well via a button when viewing an email:



The button leads to an SMTP settings form:



Summarizing, regardless of if you're using Lando, Docksal, DDEV, or another local development stack, Mailhog is a great tool to help you test sending emails from your local development environments. 

While the screenshots in the blog post demonstrate setting up Mailhog with Lando, I can confirm that the process is just as easy with Docksal using the documentation, as I was able to configure it for a local client site in about 5 minutes.

For more information about using Mailhog with Lando, see the official documentation page.  

Categories: Drupal

Video Game Deep Cuts: Labo On A Police Quest? - by Simon Carless Blogs - 21 January 2018 - 7:35am
This week's Video Game Deep Cuts includes what editors think of Nintendo's Labo accessory for the Switch, a masterful look at the making of Sierra's incendiary Police Quest IV, and lots more.
Categories: Game Theory & Design


New Drupal Modules - 21 January 2018 - 1:17am
Categories: Drupal

Review Roundup

Tabletop Gaming News - 20 January 2018 - 11:00am
Saturdaaaaaaaaaaaay! Woo! I mean, who really doesn’t love Saturdays, in general? Sure, there’s not always the best Saturdays, but overall, it’s probably the greatest day of the week. At least, in my opinion. While we’re on the subject of opinions, it’s time to get into this week’s reviews. Today we have: Import/Export, Dream Catchers, Gaia […]
Categories: Game Theory & Design

Matt Glaman: Drupal, Coffee, Burgers - A small world afterall

Planet Drupal - 20 January 2018 - 8:00am
Drupal, Coffee, Burgers - A small world afterall mglaman Sat, 01/20/2018 - 10:00 This year I joined a coffee exchange for some members of the Drupal community. I had known there was one floating around, but finally got signed up. Over the past two years, I have gotten more and more into coffee - being a coffee snob about roasts and learning brewing techniques. Last week we were paired up. And sent out some roasts.
Categories: Drupal

CKEditor Letter Spacing

New Drupal Modules - 20 January 2018 - 6:50am

This module adds a "tracking" dropdown to WYSIWYG that allows users to apply the letter-spacing CSS property to text.


Manual library download:

Categories: Drupal

Eelke Blok: Preparing your Drupal 8.3 site with Media for Drupal 8.4

Planet Drupal - 20 January 2018 - 6:36am

If you have the Media module for Drupal 8 installed, you need to remove it before you can upgrade to the latest core version (8.4). Unfortunately, there are a few gotchas involved with the process. This blog post is about getting rid of the old contrib Media module, so the site can be updated to Drupal 8.4 in a subsequent step. This is based on my personal experience. YMMV, as they say.

Categories: Drupal


New Drupal Modules - 19 January 2018 - 11:24pm

eXtplorer is a web-based File Management Component for all your needs. It has a desktop-application-like interface with drag&drop, grid and a directory tree and makes heavy use of the Sencha ExtJS Javascript Library.
You can use it to access and modify the files and directories on your server via FTP or direct file access.

Download extplorer_D7.tar.gz

Categories: Drupal


New Drupal Modules - 19 January 2018 - 11:09pm

Provides missing OO functionality in Drupal 8, mainly focused on themes.


Categories: Drupal

D3 js

New Drupal Modules - 19 January 2018 - 9:59pm
Categories: Drupal

Drupal Console: Drupal Console 1.5.0

Planet Drupal - 19 January 2018 - 6:20pm

Drupal Console 1.5.0 is out. The newest release contains bug fixes and one new command.

Categories: Drupal

Wyrd Previews The Broken For The Other Side

Tabletop Gaming News - 19 January 2018 - 3:00pm
Fridays are pretty damn good all on their own. But then Wyrd has to go and make them even better with their regular previews. This week, we get another The Other Side one. It’s The Broken for the Cult of the Burning Man (always kinda wanted to go to that). See what they’ll be bringing […]
Categories: Game Theory & Design

Way of the Fighter Coming February 14th

Tabletop Gaming News - 19 January 2018 - 2:00pm
Happy Valentine’s Day! *punch in the mouth* *spinning roundhouse kick* *sweep the leg* Ok, so you’re not generally supposed to fight on Valentine’s Day, but if you’re picking up Way of the Fighter when it’s released, then it’d be a good way to spend a romantic evening (at least, I think so, and if you’re […]
Categories: Game Theory & Design

Acquia Developer Center Blog: Acquia Headless Lightning and Content API

Planet Drupal - 19 January 2018 - 1:10pm

Acquia Headless Lightning provides an API-first back-end content repository that allows for easy ingestion by front-end applications.

Front-end developers requiring a headless or decoupled CMS have immediate access to a cloud-hosted content repository service for development, delivering, and production.

Tags: acquia drupal planet
Categories: Drupal

Forge World Taking Orders For The Nazgûl of Dol Guldur Set

Tabletop Gaming News - 19 January 2018 - 1:00pm
The Nazgul are the elite of Sauron’s fighting forces. They’re his agents out in the land of Middle Earth, seeking out the One Ring, along with whatever nefarious plots Sauron’s cooked up. You can now order a new trio of these deadly creatures from Forge World for your games of The Hobbit. From the release: […]
Categories: Game Theory & Design

Facebook signs eSports streaming agreement for CS: GO Pro League and ESL One

Social/Online Games - Gamasutra - 19 January 2018 - 12:46pm

The social media site replaces YouTube as the sole stream provider for the two upcoming competitions.  ...

Categories: Game Theory & Design

Warlord Games Seeks Digital Sculptor

Tabletop Gaming News - 19 January 2018 - 12:00pm
Gee, seems that Warlord Games is stocking up on all sorts of help! In this case, they’re looking for a digital sculptor. Now, I need a drafting machine and a set of French curves to make a stick figure, and I think that computers are run by gnomes and sprites. So I don’t think you […]
Categories: Game Theory & Design

Friday Snippets

Tabletop Gaming News - 19 January 2018 - 11:00am
What a crazy week. Monday off. Tuesday in the office. Wednesday and Thursday at home because of the snow. Today’s back in the office, as I checked the hill at the entrance to my place late Thursday and it’d finally melted enough you could get out. So yeah, kinda odd schedule, but waddyagonnado? It’s winter. […]
Categories: Game Theory & Design

Privateer Press Seeks Metal Caster

Tabletop Gaming News - 19 January 2018 - 10:00am
Do you work well with metal? Do you want to be part of one of the largest miniatures companies out there? Would you go to a bean-eating movie with George Wendt? If you answered “Yes” to at least 2 of those questions, Privateer Press just might be wanting you. They’re looking for a new metal […]
Categories: Game Theory & Design


Subscribe to As If Productions aggregator