title: Custom printing from console.log?
body: <p>Let's say I have this class. </p>
  
  <pre><code>class Attribute {
    constructor(name) {
      this.name = name;
    }
  }
  </code></pre>
  
  <p>And I create an instance and log it to the console for debugging purposes.</p>
  
  <pre><code>const test = new Attribute('Large');
  console.log(test);
  </code></pre>
  
  <p>How can I get it to output a specially formatted string, like <code>{Attribute} Large</code>? I'm primarily concerned with Chrome support, but Node and other browsers would be nice, too. </p>