a simple logger implementation
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


dartwatch logger.

Allows logging to the javascript console and also to a

 pane on the UI.

Basic usage:


Optional: Include in your html a pre tag with id="logLib" (or some other id) wherever you would like your log messages to be output. If you don't include this, then logging just goes to the console.

main() { //optional if not supplied, just output to js console Logger.loggerElement = document.query('#logLib'); //reference the pre tag

//optional - LOG_LEVEL_INFO by default Logger.logLevel = Logger.LOG_LEVEL_DEBUG;

Logger.debug("a debug message"); Logger.info("an info message"); Logger.error("an error message");

//this also works for debug and info logging. Logger.error("an error message with exception", new Exception("some ex"));