Migrating Logback Configuration from XML to Groovy


Nov 21, 2013 1 minutes read

I’ve recently switched logback configuration of our application from XML to Groovy.

Configuration file is not about 5 times smaller and can be displayed on one screen!

Groovy helped to remove duplicating parts of configurations by using for loop.

The moving was easy thanks to online conversion tool. And don’t forget to add a groovy-all runtime dependency to your project config.

See Also

Netty: How to Initiate SSL Handshake From Client

I have had spent some time recently making netty 3.6 sending some message when connection has been established.

What documentation suggests to do is to extend SimpleChannelUpstreamHandler and override method channelConnected(...). It works fine unless SslHandler is used in the pipeline. If handler is present, channelConnected() was never called on my handler.

Using Expected Exceptions in UnitTests

Sometimes, reviewing code, I see misunderstanding of using Expected Exception concept in unit tests.

Configuring Protobuf to Java compiler in maven

Here are few steps to configure protobuf-to-java compilation in your maven project:

Install google protobuf compiler on your computer.

logo   Never miss a story, subscribe to our newsletter