Cinchoo / ChoETL.NACHA

A NACHA library for .NET / c#
MIT License
38 stars 31 forks source link

Turn off or disable logging option? #12

Closed beaudetious closed 6 years ago

beaudetious commented 6 years ago

How can I do this currently? I am getting a log output file each time I create an ACH that has no useful information to me (currently).

I searched the project for the term "Time taken to run the application" and could not find where it is used.

Thanks.

Cinchoo commented 6 years ago

Add this line at the Main() entry of your application, to control the logging (if you are building and using this library in debug mode. In release mode, it automatically turns off the logging. No need to add this statement)

static void Main(string[] args)
{
     ChoETL.ChoETLFrxBootstrap.TraceLevel = System.Diagnostics.TraceLevel.Off;
}
beaudetious commented 6 years ago

That did the trick. Thanks.