title: winston saves color formatter in text, how to remove this but still show color?
body: <p>I am trying to create a logging module using <code>winston</code> as the logging framework. It allows me to specify colors, which is quite nice if the transport is <code>Console</code>, but if I were to define two transports, one <code>Console</code>, one <code>File</code>, it will actually save the terminal formatter string in the text, which will be saved in the file.</p>
  
  <pre><code>const { addColors, createLogger, format, transports } = require('winston');
  
  const { combine, colorize, printf, timestamp } = format;
  
  const logFormat = printf((info) =&gt; {
    return `[${info.timestamp}] ${info.level}: ${info.message}`;
  });
  
  const rawFormat = printf((info) =&gt; {
    return `[${info.timestamp}] ${info.level}: ${info.message}`;
  });
  
  const config = require('../config');
  
  const logger = createLogger({
    level: config.DEBUG,
    format: combine(
      colorize(),
      timestamp({ format: 'YYYY-MM-DD HH:mm:ss' }),
      logFormat,
    ),
    transports: [
      new transports.File({
        filename: 'combined.log',
      }),
      new transports.Console({ format: combine(timestamp(), rawFormat) }),
    ],
  });
  
  addColors({
    debug: 'white',
    error: 'red',
    info: 'green',
    warn: 'yellow',
  });
  
  module.exports = logger;
  </code></pre>
  
  <p>Console will look like this:</p>
  
  <pre><code>[2018-06-12 15:54:14] info: Listening on port 9000
  </code></pre>
  
  <p>Where <code>info</code> is colorized to green, but if i look at the <code>combine.log</code> file, it will show as:</p>
  
  <pre><code>[2018-06-12 15:54:14] [32minfo[39m: Listening on port 9000
  </code></pre>
  
  <p>Is it possible to log raw text to a file, but still show colors in terminal?</p>
  
  <p>If not, is there another library that allows for this? Say <code>bunyan</code>?</p>