colorino 0.12.6 → 0.12.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -98,15 +98,15 @@ CommonJS-style bundle:
|
|
|
98
98
|
Just import the default instance and log away!
|
|
99
99
|
|
|
100
100
|
```typescript
|
|
101
|
-
import {
|
|
101
|
+
import { colorino } from 'colorino'
|
|
102
102
|
|
|
103
103
|
// All log levels automatically themed
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
104
|
+
colorino.error('A critical error!')
|
|
105
|
+
colorino.warn('A warning message.')
|
|
106
|
+
colorino.info('Useful info logging.')
|
|
107
|
+
colorino.log('A plain log.')
|
|
108
|
+
colorino.debug('Debug with objects:', { x: 5, y: 9 })
|
|
109
|
+
colorino.trace('Tracing app start...')
|
|
110
110
|
```
|
|
111
111
|
|
|
112
112
|
### <a id="5-2"></a>Creating a Custom Logger
|