File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// Copyright (c) Microsoft Corporation. All rights reserved.
22// Licensed under the MIT License.
33
4+ using System ;
45using System . IO ;
56using System . Text ;
67using System . Windows ;
@@ -40,13 +41,11 @@ static App()
4041
4142 TokenCacheHelper . Bind ( PublicClientApp . UserTokenCache ) ;
4243 }
44+
4345 private static void Log ( LogLevel level , string message , bool containsPii )
4446 {
45- string logs = ( $ "{ level } { message } ") ;
46- StringBuilder sb = new StringBuilder ( ) ;
47- sb . Append ( logs ) ;
48- File . AppendAllText ( System . Reflection . Assembly . GetExecutingAssembly ( ) . Location + ".msalLogs.txt" , sb . ToString ( ) ) ;
49- sb . Clear ( ) ;
47+ string logs = $ "{ level } { message } { Environment . NewLine } ";
48+ File . AppendAllText ( System . Reflection . Assembly . GetExecutingAssembly ( ) . Location + ".msalLogs.txt" , logs ) ;
5049 }
5150 }
5251}
You can’t perform that action at this time.
0 commit comments