title: Where is the winston log files when using docker
body: <p>I am using winston for log and it's perfectly works when I start the nodejs app,</p>
  <p>But my problem is I can not see logs when using docker.</p>
  <p>where is the location of logs when using docker in linux?</p>
  <p>the Logger.ts file:</p>
  <pre><code>import &quot;express-async-errors&quot;;
  import { createLogger, transports, format } from &quot;Winston&quot;;
  import fs from &quot;fs&quot;;
  import DailyRotateFile from &quot;winston-daily-rotate-file&quot;;
  import { environment, logDirectory } from &quot;../config&quot;;
  import path from &quot;path&quot;;
  
  let dir = logDirectory;
  if (!dir) dir = path.resolve(&quot;logs&quot;);
  
  // create directory if it is not present
  if (!fs.existsSync(dir)) {
    fs.mkdirSync(dir);
  }
  
  const logLevel = environment === &quot;development&quot; ? &quot;debug&quot; : &quot;warn&quot;;
  
  const options = {
    file: {
      level: logLevel,
      filename: dir + &quot;/%DATE%.log&quot;,
      datePattern: &quot;YYYY-MM-DD&quot;,
      zippedArchive: true,
      timestamp: true,
      handleExceptions: true,
      humanReadableUnhandledException: true,
      prettyPrint: true,
      json: true,
      maxSize: &quot;20m&quot;,
      colorize: true,
      maxFiles: &quot;14d&quot;,
    },
  };
  
  export default createLogger({
   transports: [
     new transports.Console({
       level: logLevel,
       format: format.combine(
         format.errors({ stack: true }),
         format.prettyPrint()
        ),
      }),
      new DailyRotateFile(options.file),
    ],
     exceptionHandlers: [new DailyRotateFile(options.file)],
     exitOnError: false, // do not exit on handled exceptions
  });
  </code></pre>