<commit_before>/**
 * writer.js
 *
 * @author: <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2015-2016, QuorraJS.
 * @license See LICENSE.txt
 */

var winston = require('winston');

function logger() {
    var log = new (winston.Logger)();
    log.__proto__ = prototype;
    return log;
}

var prototype = {
    __proto__: winston.Logger.prototype
};

/**
 * Register a file log handler.
 *
 * @param  {Object}  options
 */
prototype.useFiles = function(options){
    this.add(winston.transports.File, options);
};

/**
 * Register a daily file log handler.
 *
 * @param  {Object}  options
 */
prototype.useDailyFiles = function(options)
{
    this.add(winston.transports.DailyRotateFile, options);
};

/**
 * Register a mongo db log handler.
 *
 * @param  {Object}  options
 */
prototype.useMongoDB = function(options)
{
    this.add(require('winston-mongodb').MongoDB, options);
};

/**
 * Register a mail log handler.
 *
 * @param  {Object}  options
 */
prototype.useMail = function(options)
{
    this.add(require('winston-mail').Mail, options);
};

module.exports = logger;<commit_msg>Add useConsol method<commit_after>/**
 * writer.js
 *
 * @author: <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2015-2016, QuorraJS.
 * @license See LICENSE.txt
 */

var winston = require('winston');

function logger() {
    var log = new (winston.Logger)();
    log.__proto__ = prototype;
    return log;
}

var prototype = {
    __proto__: winston.Logger.prototype
};

/**
 * Register a file log handler.
 *
 * @param  {Object}  options
 */
prototype.useFiles = function(options){
    this.add(winston.transports.File, options);
};

/**
 * Register a daily file log handler.
 *
 * @param  {Object}  options
 */
prototype.useDailyFiles = function(options)
{
    this.add(winston.transports.DailyRotateFile, options);
};

/**
 * Register a mongo db log handler.
 *
 * @param  {Object}  options
 */
prototype.useMongoDB = function(options)
{
    this.add(require('winston-mongodb').MongoDB, options);
};

/**
 * Register a mail log handler.
 *
 * @param  {Object}  options
 */
prototype.useMail = function(options)
{
    this.add(require('winston-mail').Mail, options);
};

/**
 * Register a console log handler.
 *
 * @param  {Object}  options
 */
prototype.useConsole = function(options){
    this.add(winston.transports.Console, options);
};

module.exports = logger;
{'fraction_non_alphanumeric': 0.15782774713619008, 'fraction_numerical': 0.0067882901994060245, 'mean_word_length': 3.60546875, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5958064', 'n_tokens_mistral': 813, 'n_tokens_neox': 778, 'n_words': 177}