Cinchoo is an application framework for .NET. One of the main functionality it provides to users is application configuration management. Application configuration is the information that an application reads and/or writes at run-time from the source.
Please visit jump start article [Cinchoo – Simplified Configuration Manager] for more information about Cinchoo configuration manager.
In this section, I’ll show to disable logging of Cinchoo framework produces. Open a app.config file from your project. Add the below section
<configuration> <system.diagnostics> <switches> <add name="ChoSwitch" value="0" /> </switches> </system.diagnostics> </configuration>
ChoSwitch is a TraceSwitch, you can assign different levels to it to specify the types of trace or debug messages the application outputs. Setting the value to “0” will disable all the logging of the framework.
Other possible values can be assigned to control the output of the logs
- 0 – Off
- 1 – Error
- 2 – Warning
- 3 – Info
- 4 – Verbose