BitFab.KW1281Test.Logger.Close C# (CSharp) Method

Close() static private method

static private Close ( ) : void
return void
        internal static void Close()
        {
            _writer.Close();
        }

Usage Example

Exemplo n.º 1
0
        static void Main(string[] args)
        {
            try
            {
                Logger.Open("KW1281Test.log");

                var tester = new Program();
                tester.Run(args);
            }
            catch (Exception ex)
            {
                Logger.WriteLine($"Unhandled exception: {ex}");
            }
            finally
            {
                Logger.Close();
            }
        }