<commit_before>Winston-Rolling-File-Appender
=============================

A rolling file transport for the logging library winston for node.js.
This transport has been modified from the original transport to create a log file for each day.

If configured with my.log as filename, the generated files will be for example:

my.2012-08-01.log
my.2012-08-02.log
my.2012-08-03.log
...
my.2012-08-10.log
my.log ( -> symbolic link to latest log file)

The transport has been used and tested on linux machines. No idea if this works on windows.


# Usage

```javascript
var winston = require('winston');
require('./rollingFile.js');

winston.loggers.add('myLogger', {
	rollingFile : {
		filename : '/path/to/my/filename.log',	// files will use filename.<date>.log for all files 
		level : 'info',							// Set your winston log level, same as original file transport
		timestamp : true,						// Set timestmap format/enabled, Same ass original file transport
		maxFiles : 10,							// How many days to keep as back log
		json : false							// Store logging data ins json format
	}
});
```<commit_msg>- Fixed formatting in Readme<commit_after>Winston-Rolling-File-Appender
=============================

A rolling file transport for the logging library winston for node.js.
This transport has been modified from the original transport to create a log file for each day.

If configured with my.log as filename, the generated files will be for example:

	my.2012-08-01.log
	my.2012-08-02.log
	my.2012-08-03.log
	...
	my.2012-08-10.log
	my.log ( -> symbolic link to latest log file)

The transport has been used and tested on linux machines. No idea if this works on windows.


# Usage

```javascript
var winston = require('winston');
require('./rollingFile.js');

winston.loggers.add('myLogger', {
	rollingFile : {
		filename : '/path/to/my/filename.log',	// files will use filename.<date>.log for all files 
		level : 'info',							// Set your winston log level, same as original file transport
		timestamp : true,						// Set timestmap format/enabled, Same ass original file transport
		maxFiles : 10,							// How many days to keep as back log
		json : false							// Store logging data ins json format
	}
});
```
{'fraction_non_alphanumeric': 0.12380952380952381, 'fraction_numerical': 0.030839002267573697, 'mean_word_length': 3.394422310756972, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2664954', 'n_tokens_mistral': 748, 'n_tokens_neox': 629, 'n_words': 258}