Changed logging framework to work with chrome extensions.