Ticket/10714 Implement log class

http://tracker.phpbb.com/browse/PHPBB3-10714