MemoryChannel chan = new MemoryChannel();
chan.configure(new Context());
chan.start();
ReplicatingChannelSelector sel = new ReplicatingChannelSelector();
sel.setChannels(Lists.<Channel>newArrayList(chan));
ChannelProcessor chanProc = new ChannelProcessor(sel);
// defaults to UTF-8
MultiportSyslogHandler handler = new MultiportSyslogHandler(
1000, 10, chanProc, new SourceCounter("test"), "port",
new ThreadSafeDecoder(Charsets.UTF_8), portCharsets, KEEP_FIELDS);