fBaseXtensions.Helpers.Logger.WriteLine C# (CSharp) Method

WriteLine() private static method

private static WriteLine ( string text, bool append ) : void
text string
append bool
return void
        private static void WriteLine(string text, bool append)
        {
            // open file
            // If an error occurs throw it to the caller.
            try
            {

                StreamWriter Writer = new StreamWriter(FunkyLogFilename, append, Encoding.UTF8);
                if (!String.IsNullOrEmpty(text)) Writer.WriteLine(text);
                Writer.Flush();
                Writer.Close();
            }
            catch
            {
                throw;
            }
        }