<commit_before>var winston = require('winston');
var moment = require('moment');
var getSecret = require('./docker-secrets').getDockerSecret;

function getLogger(nconf) {
  var log_level = nconf.get('loglevel');
  var logger = new (winston.Logger)({
    transports: [
      new (winston.transports.Console)({
        "level": log_level,
        "json": nconf.get('json'),
        "timestamp": function() {
          return moment();
        }
      })
    ]<commit_msg>Change level to log_level to be compatible with django<commit_after>var winston = require('winston');
var moment = require('moment');
var getSecret = require('./docker-secrets').getDockerSecret;

function getLogger(nconf) {
  var log_level = nconf.get('loglevel');
  var logger = new (winston.Logger)({
    transports: [
      new (winston.transports.Console)({
        "log_level": log_level,
        "json": nconf.get('json'),
        "timestamp": function() {
          return moment();
        }
      })
    ]
{'fraction_non_alphanumeric': 0.1525940996948118, 'fraction_numerical': 0.0, 'mean_word_length': 3.1171548117154813, 'pattern_counts': {'":': 6, '<': 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': '323074', 'n_tokens_mistral': 307, 'n_tokens_neox': 295, 'n_words': 66}