Skip to content

Commit

Permalink
support debug: true
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchen committed Oct 23, 2016
1 parent e465dbe commit 7d48595
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions core/quill.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ let debug = logger('quill');

class Quill {
static debug(limit) {
if (limit === true) {
limit = 'log';
}
logger.level(limit);
}

Expand Down
3 changes: 2 additions & 1 deletion docs/_includes/standalone/snow.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
<script type="text/javascript">
var quill = new Quill('#snow-container', {
placeholder: 'Compose an epic...',
theme: 'snow'
theme: 'snow',
debug: true
});
</script>
<!-- script -->
4 changes: 2 additions & 2 deletions docs/docs/api/extension.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

### debug

Static method enabling logging messages at a given level: `'error'`, `'warn'`, `'log'`, or `'info'`.
Static method enabling logging messages at a given level: `'error'`, `'warn'`, `'log'`, or `'info'`. Passing `true` is equivalent to passing `'log'`. Passing `false` disables all messages.

**Methods**

```javascript
Quill.debug(level: String)
Quill.debug(level: String | Boolean)
```

**Examples**
Expand Down

0 comments on commit 7d48595

Please sign in to comment.