2023-02-03 19:21:19 +01:00
|
|
|
# COUT
|
|
|
|
|
|
|
|
This module allow you to make COUT and Debugs in NodeJS
|
|
|
|
|
|
|
|
|
|
|
|
```js
|
2023-06-19 18:59:21 +02:00
|
|
|
import { cout } from '@thundernetworkrad/std';
|
2023-02-03 19:21:19 +01:00
|
|
|
|
2023-06-19 18:59:21 +02:00
|
|
|
cout = new cout(0, true, true); // debugLevel, logs enabled (file), emojis enabled
|
2023-02-03 19:21:19 +01:00
|
|
|
|
2023-06-19 18:59:21 +02:00
|
|
|
cout.debug('test', 0) // console.log time and the string, if the number is >= to the debugLevel
|
|
|
|
cout.log('test')
|
|
|
|
cout.error('test')
|
|
|
|
cout.warn('test')
|
|
|
|
cout.info('test')
|
2023-02-03 19:21:19 +01:00
|
|
|
```
|