title: Writing log files
body: <p>I am developing c# application, which is running as a windows service.
  What ever transactions we are doing in the application i am  writing it into log file.
  A log directory is added in app.config file as below.</p>
  
  <pre><code>&lt;add key ="LogDir" value="log" /&gt;
      &lt;add key ="LogLevel" value="2" /&gt;
  </code></pre>
  
  <p>And in the c# code the above one is accessing as below.</p>
  
  <pre><code>int logLevel = Convert.ToInt32(ConfigurationManager.AppSettings["logLevel"]);
                  if (logLevel &gt; 0)
                  {
                      logger = new Logger();
                      logger.TraceLevel = logLevel - 1;
                      logger.logDir = ConfigurationManager.AppSettings["logDir"];
                      logger.logFileBaseName = "touchserver";
                  }
  </code></pre>
  
  <p>And then when any process is happening i am writing the data to the log as below.</p>
  
  <pre><code>TouchServer.Log(Logger.MessageType.Trace, 1, "Item successfully deleted");
  </code></pre>
  
  <p>And when i run my application in debug mode (i mean as console application) the log file will be created in the application's debug folder and the data will write into the log file.</p>
  
  <p>But my problem is that when i install my application as service the log file is not getting created in the debug folder, and i am unable to see the actions performed , in case if anything went wrong.</p>
  
  <p>Please help me to find a solution in this.</p>
  
  <p>And i am installing service using  Installutil command.</p>
  
  <p>Thanks in advance
  sangita</p>