<commit_before># de-logger
## Getting Started

Install de-logger using npm install
```javascript
npm install de-logger --save
```

Require de-logger in your project
```javascript
var log = require('de-logger');
```



## API

### set({config})
Change the default configuration by providing a config object. This can be done at any time during you project and multiple times. This way data in your project can be logged differently at any point in your project.

##### Config
```javascript
// Default config
config = {
  ms:		false,
  date:		false,
  time:		false,
  whipe:	false
  terminal:	true
};
```
__ms__ _true / false_
Add miliseconds to time (only works if time is true)

__date__ _true / false_
Show the current date

__time__ _true / false_
Show the current time

__whipe__ _true / false_
This will also clear the console history

__terminal__ _true / false_
Show messages in the terminal

__Don't show messages from a specific function__
You can also turn of a specific log function. Remember they will stay turned off untill you swich them on again somewhere in your code.

```javascript
config = {
  func:
    display: false
  event:
    display: false
};
```

### clear()
Clears the console, based on your config your console scroll history will be wiped too.

### func(*)
Identifing which function is triggered (suppling the function name is still required for now)

### debug(*)
Display debug information

### info(*)
Display general information like which port your webserver is running on

### event(*)
Keep track of specific (socket) events.

### warn(*)
Show warnings
<commit_msg>see if this works<commit_after># de-logger
## Getting Started

Install de-logger using npm install
```javascript
npm install de-logger --save
```

Require de-logger in your project
```javascript
var log = require('de-logger');
```



## API

### set({config})
Change the default configuration by providing a config object. This can be done at any time during you project and multiple times. This way data in your project can be logged differently at any point in your project.

##### Config
```javascript
// Default config
config = {
  ms:		false,
  date:		false,
  time:		false,
  whipe:	false
  terminal:	true
};
```
__ms__ _true / false_
Add miliseconds to time (only works if time is true)

__date__ _true / false_
Show the current date

__time__ _true / false_
Show the current time

__whipe__ _true / false_
This will also clear the console history

__terminal__ _true / false_
Show messages in the terminal

___Do not show messages from a specific function___ _ _
You can also turn of a specific log function. Remember they will stay turned off untill you swich them on again somewhere in your code.

```javascript
config = {
  func:
    display: false
  event:
    display: false
};
```

### clear()
Clears the console, based on your config your console scroll history will be wiped too.

### func(*)
Identifing which function is triggered (suppling the function name is still required for now)

### debug(*)
Display debug information

### info(*)
Display general information like which port your webserver is running on

### event(*)
Keep track of specific (socket) events.

### warn(*)
Show warnings

{'fraction_non_alphanumeric': 0.0832034901838579, 'fraction_numerical': 0.0, 'mean_word_length': 4.08716323296355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '392715', 'n_tokens_mistral': 911, 'n_tokens_neox': 879, 'n_words': 444}