Added logging functionality.
    For detailed information, refer to http://techtipshoge.blogspot.jp/2013/02/learn-log4j3.html