How to log all of the events emitted by a Contract since it's inception?

Viewed 2384

I'm currently using the Truffle framework to check but all the documentation is around watching current events.

var meta = MetaCoin.deployed();
var events = meta.allEvents();
events.watch(function(error, result) {
  if (error == null) {
    console.log(result.args);
  }
}
1 Answers
Related