Skip to content

Commit a79c913

Browse files
authored
Update examples so they all print at default level
Fixes #118
1 parent c1de8e4 commit a79c913

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ loglevel supports AMD (e.g. RequireJS), CommonJS (e.g. Node.js) and direct usage
5252

5353
```javascript
5454
var log = require('loglevel');
55-
log.info("unreasonably simple");
55+
log.warn("unreasonably simple");
5656
```
5757

5858
### AMD (e.g. RequireJS)
@@ -68,15 +68,15 @@ define(['loglevel'], function(log) {
6868
```html
6969
<script src="loglevel.min.js"></script>
7070
<script>
71-
log.error("too easy");
71+
log.warn("too easy");
7272
</script>
7373
```
7474

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

7777
```javascript
7878
import * as log from 'loglevel';
79-
log.debug("all done");
79+
log.warn("ultra-compatible");
8080
```
8181

8282
### With noConflict():
@@ -90,7 +90,7 @@ For example:
9090
<script>
9191
var logging = log.noConflict();
9292
93-
logging.error("still pretty easy");
93+
logging.warn("still pretty easy");
9494
</script>
9595
```
9696

0 commit comments

Comments
 (0)