title: How to enable embedded tomcat logging
body: <p>I m using embedded tomcat in my java application. below is my source code. however tomcat is not generating any log.</p>
  
  <pre><code>        embedded = new Embedded();
          embedded.setDebug(3);
  
          org.apache.catalina.logger.FileLogger embeddedFileLogger = new org.apache.catalina.logger.FileLogger();         
          embeddedFileLogger.setDirectory(tomcatHome+"/log");
          embeddedFileLogger.setPrefix("Embedded_log_");
          embeddedFileLogger.setSuffix(".txt");
          embeddedFileLogger.setTimestamp(true);
          embeddedFileLogger.setVerbosity(3);
  
  
  
          //embedded.setLogger(new SystemOutLogger());
          engine = embedded.createEngine();
          //engine.setLogger(embeddedFileLogger);
          embeddedFileLogger.setContainer(engine);
          engine.setDefaultHost("localhost");
  
          host = embedded.createHost("localhost", tomcatHome + "/webapps");
          //host.setLogger(embeddedFileLogger);
          engine.addChild(host);
  
          _context = embedded.createContext("", tomcatHome + "/webapps/ROOT");
          host.addChild(_context);
  
          embedded.addEngine(engine);
  
          CoyoteConnector connector = (CoyoteConnector)embedded.createConnector(InetAddress.getByName(ipAddress), port, false);               
                     embedded.addConnector(connector);
          embedded.setLogger(embeddedFileLogger);
          embedded.start();
  </code></pre>
  
  <p>Please let me know how can i enable embedded tomcat logging through code or tomcat configuration.</p>