openexchangerates / javascript-sandbox-console

a mini interactive javascript console for library/plugin demos and homepages
http://openexchangerates.github.io/javascript-sandbox-console/
MIT License
319 stars 58 forks source link

Add log method for printing output programmatically #8

Open wjcrowcroft opened 12 years ago

wjcrowcroft commented 12 years ago

Currently the only way to print a log method is to use

sandbox.model.addHistory({
    command: "",
    result: "log message"
});

And it adds a blank line above the output because of the empty command. Planning to add a Model.log() method to make this nicer.

JogoShugh commented 9 years ago

This would be cool. Any tips on how to implement this?