<commit_before>/**
 * Created by tmolnar on 3/21/15.
 */
module.exports = (function () {
    var request = require('request');

    var logger = function(message, isProd) {

        if (isProd) {
            var options = {
                url: "http://api.logentries.com/fb4d19bb-49e9-4e05-8451-1f3c06061d35/hosts/heroku/1927b208-82c7-4266-a8d0-ab6d5c6de2ca/?realtime=1",
                method: "put",
                body: message
            };

            request(options, null);
        } else {
            console.log(message);
        }
    };
    return logger;
})();<commit_msg>Send log as data=logmessage format<commit_after>/**
 * Created by tmolnar on 3/21/15.
 */
module.exports = (function () {
    var request = require('request');

    var logger = function(message, isProd) {

        if (isProd) {
            var options = {
                url: "http://api.logentries.com/fb4d19bb-49e9-4e05-8451-1f3c06061d35/hosts/heroku/1927b208-82c7-4266-a8d0-ab6d5c6de2ca/?realtime=1",
                method: "put",
                body: {
                    data: message
                }
            };

            request(options, null);
        } else {
            console.log(message);
        }
    };
    return logger;
})();
{'fraction_non_alphanumeric': 0.13793103448275862, 'fraction_numerical': 0.07698476343223737, 'mean_word_length': 1.6666666666666667, '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': '3988525', 'n_tokens_mistral': 470, 'n_tokens_neox': 415, 'n_words': 67}