I have created a windows service and writing Running logs to "/Log/" folder, Where can I find this folder.
It is not in Program Files where I installed the service.
I created the folder as per the Kyle's anser in Folder to dump windows service log files.
CODE to Create Folder:
_logFolderPath = "/Logs/";
string fileNameAndPath = Path.Combine(_logFolderPath, fileName);
var fileInfo = new FileInfo(fileNameAndPath + ".txt");
//Check if txt file exits
if (!fileInfo.Exists)
{
//check if its directory exits, if not create
if (!fileInfo.Directory.Exists) fileInfo.Directory.Create();
//create file
FileStream fs = fileInfo.Create();
fs.Close();
}