AMD/CommonJS logging module