colorino 0.12.3 → 0.12.4
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 +9 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -98,15 +98,17 @@ CommonJS-style bundle:
|
|
|
98
98
|
Just import the default instance and log away!
|
|
99
99
|
|
|
100
100
|
```typescript
|
|
101
|
-
import {
|
|
101
|
+
import { createColorino } from 'colorino'
|
|
102
|
+
|
|
103
|
+
const logger = createlogger()
|
|
102
104
|
|
|
103
105
|
// All log levels automatically themed
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
logger.error('A critical error!')
|
|
107
|
+
logger.warn('A warning message.')
|
|
108
|
+
logger.info('Useful info logging.')
|
|
109
|
+
logger.log('A plain log.')
|
|
110
|
+
logger.debug('Debug with objects:', { x: 5, y: 9 })
|
|
111
|
+
logger.trace('Tracing app start...')
|
|
110
112
|
```
|
|
111
113
|
|
|
112
114
|
### <a id="5-2"></a>Creating a Custom Logger
|