/**
 * Copyright (c) 2012, Thilo Planz. All rights reserved.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the Apache License, Version 2.0
 * as published by the Apache Software Foundation (the "License").
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 *
 * You should have received a copy of the License along with this program.
 * If not, see <http://www.apache.org/licenses/LICENSE-2.0>.
 */

package jmockmongo.wire;

import org.jboss.netty.channel.ChannelHandlerContext;
import org.jboss.netty.channel.MessageEvent;
import org.jboss.netty.channel.SimpleChannelUpstreamHandler;

public class LoggingHandler extends SimpleChannelUpstreamHandler {

	@Override
	public void messageReceived(ChannelHandlerContext ctx, MessageEvent e)
			throws Exception {
		System.out.println(e.getMessage());
		super.messageReceived(ctx, e);
	}

}

@@ -751,16 +751,50 @@
 .wire;%0A%0A
+import java.util.logging.Logger;%0A%0A
 import o
@@ -839,16 +839,16 @@
 ontext;%0A
-
 import o
@@ -1014,16 +1014,84 @@
 dler %7B%0A%0A
+%09private static final Logger log = Logger.getLogger(%22jmockmongo%22);%0A%0A
 %09@Overri
@@ -1193,26 +1193,16 @@
 %7B%0A%09%09
-System.out.println
+log.fine
 (e.g
@@ -1212,16 +1212,27 @@
 essage()
+.toString()
 );%0A%09%09sup

stop printing to System.out, use JDK logging instead