<commit_before>// Imports
import * as path from 'path';
import * as winston from 'winston';

// Imports configuration
import { config } from './config';

let transportsArr = [];

transportsArr = [
  new (winston.transports.Console)({ level: 'debug' }),
  new (winston.transports.File)({
    filename: path.join(config.logging.path, 'feature-toggle-api.log'),
    level: 'debug',
  }),
];


const logger = new (winston.Logger)({
  transports: transportsArr,
});

export function getLogger(name: string) {

  let transportsNameArr = [];

  transportsNameArr = [
    new (winston.transports.Console)({ level: 'debug' }),
    new (winston.transports.File)({
      filename: path.join(config.logging.path, `feature-toggle-api-${name}.log`),
      level: 'debug',
    }),
  ];

  return new (winston.Logger)({
    transports: transportsNameArr,
  });
}

// Exports
export { logger };<commit_msg>updates logger<commit_after>// Imports
import * as path from 'path';
import * as winston from 'winston';

// Imports configuration
import { config } from './config';

let transportsArr = [];

transportsArr = [
  new (winston.transports.Console)({ level: 'debug' }),
  new (winston.transports.File)({
    filename: path.join(config.logging.path, 'feature-toggle-service.log'),
    level: 'debug',
  }),
];


const logger = new (winston.Logger)({
  transports: transportsArr,
});

export function getLogger(name: string) {

  let transportsNameArr = [];

  transportsNameArr = [
    new (winston.transports.Console)({ level: 'debug' }),
    new (winston.transports.File)({
      filename: path.join(config.logging.path, `feature-toggle-service-${name}.log`),
      level: 'debug',
    }),
  ];

  return new (winston.Logger)({
    transports: transportsNameArr,
  });
}

// Exports
export { logger };
{'fraction_non_alphanumeric': 0.1667599328483492, 'fraction_numerical': 0.0, 'mean_word_length': 3.806451612903226, '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': '3773204', 'n_tokens_mistral': 603, 'n_tokens_neox': 584, 'n_words': 129}