---
title: "How to store event log in Folder"  
description: "How to store event log in Folder"  
author: "Anonymous User"  
published: 2014-08-26  
updated: 2014-08-26  
canonical: https://www.mindstick.com/forum/2149/how-to-store-event-log-in-folder  
category: "asp.net"  
tags: ["asp.net", "store event", "store event log in Folder", "open source", "free"]  
reading_time: 1 minute  

---

# How to store event log in Folder

I'm using the System.Diagnostics [namespace](https://www.mindstick.com/articles/12552/namespace) to log [errors](https://answers.mindstick.com/qa/116170/fresh-fir-against-gandhis-in-national-herald-case-cover-up-for-ed-s-own-errors), [warning](https://answers.mindstick.com/blog/77/psychological-risks-of-ai-chatbots-what-experts-are-warning-about) and information.

Using [Windows](https://www.mindstick.com/articles/311752/how-to-install-and-use-the-google-wifi-software-on-a-windows-or-mac-computer) 7 I see that the log I've set for the [project](https://www.mindstick.com/articles/105927/how-to-excel-at-managing-multiple-projects) is under "[Applications and Services](https://answers.mindstick.com/qa/115215/how-has-isro-contributed-to-india-s-development-through-its-space-based-applications-and-services) [Logs](https://answers.mindstick.com/qa/50941/how-to-use-manage-apple-iphone-6s-call-forwarding-conferencing-blocking-caller-id-call-logs-settings)".

How can I set in [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) to create a folder and put it under "Applications and Services Logs[SOME FOLDER]\Applications and Services Logs"?

## Replies

### Reply by Sumit Kesarwani

Hi Pravesh, try this:\

EventLog.CreateEventSource("Source", "Log name");

EventLog.WriteMessage("Source", "Your message");


---

Original Source: https://www.mindstick.com/forum/2149/how-to-store-event-log-in-folder

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
