JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://rawgithub.com/int32at/log.js/master/dist/log-0.1.6.min.js"></script>

JavaScript

//console
log.debug("this is a debug message");

//change to alert
log.init(logger.appender.alertAppender);
log.warn("this is a warning message");

//change to toastr
log.init(logger.appender.toastrAppender, null, function() {
    log.error("this is an error message");
});