New here?

Here are some of the most popular posts to get you started:

How to log to the PHP error log in Symfony 2

Sometimes you want to log to PHP’s error_log in a Symfony 2 app. This is useful if your app runs in a container (think Docker) and PHP’s error log is redirected to standard output and you want your application logs to show up there too.

You need to use at least version 2.4 of the MonologBundle to use the ErrorLogHandler:

{
    "require": {
        …
        "symfony/monolog-bundle": "~2.4"
    }
}

Then in your config_prod.yml and config_dev.yml change the type of the Monolog handlers to error_log and you are all set. For example, the Monolog config in config_dev.yml would look like this:

monolog:
    handlers:
        main:
            type:  error_log
            level: debug

Site Design Tweaks

I was quite happy how the responsive redesign of this site turned out. But nevertheless there were some things which didn’t feel right. The homepage wanted to be too many things at once. That made it a mess.

So I did these changes:

  • Focused the homepage on the blog and moved the rest to About me.
  • New sidebar and navigation (try it on your phone)
  • Tweaked typography a bit and used the excellent Adelle for page headlines again.

Please tell me what you think in the comments.

Go Patterns

I must admit that I’m a serious fan of Go. I spent most of the last company hackdays with it, doing some small projects, like a simple language independent job queue, and some smaller libraries.

2012

Let’s look back at the year 2012. It was a very succesful year, for me, though we had some ups and downs at IWA-Tech. People came and people left. I took over a new role and learned many things.