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

Open() static private method

static private Open ( string filename ) : void
filename string
return void
        internal static void Open(string filename)
        {
            _writer = new StreamWriter(filename, append: true);
        }

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();
            }
        }