Open source : LogThis C# logging framework

LogThis C# logging framework is a drop-in logging tool module for .Net applications. Supports: Multiple custom profiles; log file naming by day, week, month; max log file size; Windows event log. Simple out of the box, intelligent presets.

Download : http://sourceforge.net/projects/logthis/

Open Source : Logging in C#

Common.Logging is a library to introduce a simple abstraction to allow you to select a specific logging implementation at runtime. There are a variety of logging implementations for .NET currently in use, log4net, Enterprise Library Logging, NLog, to name the most popular. They do not share a common interface and therefore impose a particular logging implementation on the users of your library. Common.Logging solves this problem.

Download http://netcommon.sourceforge.net/

Open Source : Logging Tools in C#

log4net is a tool to help the programmer output log statements to a variety of output targets. log4net is a port of the excellent log4j framework to the .NET runtime. Features:

* Support for multiple frameworks
* Output to multiple logging targets
* Hierarchical logging architecture
* XML Configuration
* Dynamic Configuration
* Logging Context
* Proven architecture
* Modular and extensible design
* High performance with flexibility

Download http://logging.apache.org/log4net/

Open Source : Windows Installer XML (WiX) is a toolset that builds Windows installation

The Windows Installer XML (WiX) is a toolset that builds Windows installation packages from XML source code. The toolset supports a command line environment that developers may integrate into their build processes to build MSI and MSM setup packages.

Download http://sourceforge.net/projects/wix/

Open Source : C# discussion board or forum for websites running ASP.NET

dnfBB is a powerful and fast 3 Tier, C# discussion board or forum for websites running ASP.NET. Native support for multiple forums within the same db structure. Designed to work with Firebird and MySQL, support for additional RDBMSs in the future.

HomePage http://www.dnfbb.net

c# code Write value into Registry

public bool WriteRegistry(string KeyName, object Value)
{
try
{
// Setting
RegistryKey rk = baseRegistryKey;
// I have to use CreateSubKey
// (create or open it if already exits),
// 'cause OpenSubKey open a subKey as read-only
RegistryKey sk1 = rk.CreateSubKey(subKey);
// Save the value
sk1.SetValue(KeyName.ToUpper(), Value);

return true;
}
catch (Exception e)
{
logger.Error("WriteRegistry : " + e.Message);
logger.Debug(e.StackTrace);
logger.Error(e.Message);
logger.Error(e.StackTrace);
return false;
}
}

C# code Read Registry value

public string ReadRegistry(string KeyName)
{
// Opening the registry key
RegistryKey rk = baseRegistryKey;
// Open a subKey as read-only
RegistryKey sk1 = rk.OpenSubKey(subKey);
// If the RegistrySubKey doesn't exist -> (null)
if (sk1 == null)
{
return null;
}
else
{
try
{
// If the RegistryKey exists I get its value
// or null is returned.
return (string)sk1.GetValue(KeyName.ToUpper());
}
catch (Exception e)
{
logger.Error("ReadRegistry : " + e.Message);
logger.Debug(e.StackTrace);
// error!
//ShowErrorMessage(e, "Reading registry " + KeyName.ToUpper());
return null;
}
}
}