Add a logger to the JavaScripting class.