A simple javascript logging utility