A flexible logging library for javascript