Skip to content

Commit 01c362b

Browse files
authored
Update README.md
1 parent fad08dd commit 01c362b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,20 @@ new Vue({
6868
b : 'b'
6969
}
7070
},
71-
7271
created() {
7372
this.$log.debug('test', this.a, 123)
7473
this.$log.info('test', this.b)
7574
this.$log.warn('test')
7675
this.$log.error('test')
7776
this.$log.fatal('test')
77+
externalFunction()
7878
}
7979
})
80+
81+
function externalFunction() {
82+
// log from external function
83+
Vue.$log.debug('log from non Vue function.')
84+
}
8085
```
8186

8287
## Maintainers

0 commit comments

Comments
 (0)