Skip to content

Commit

Permalink
Update examples so they all print at default level
Browse files Browse the repository at this point in the history
Fixes #118
  • Loading branch information
pimterry authored Jan 10, 2018
1 parent c1de8e4 commit a79c913
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ loglevel supports AMD (e.g. RequireJS), CommonJS (e.g. Node.js) and direct usage

```javascript
var log = require('loglevel');
log.info("unreasonably simple");
log.warn("unreasonably simple");
```

### AMD (e.g. RequireJS)
Expand All @@ -68,15 +68,15 @@ define(['loglevel'], function(log) {
```html
<script src="loglevel.min.js"></script>
<script>
log.error("too easy");
log.warn("too easy");
</script>
```

### As an ES6 module (assuming some transpilation step):

```javascript
import * as log from 'loglevel';
log.debug("all done");
log.warn("ultra-compatible");
```

### With noConflict():
Expand All @@ -90,7 +90,7 @@ For example:
<script>
var logging = log.noConflict();
logging.error("still pretty easy");
logging.warn("still pretty easy");
</script>
```

Expand Down

0 comments on commit a79c913

Please sign in to comment.