Logger added

javascript console doesn't support apply ;-(