File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33// Website: https://www.blazor.zone or https://argozhang.github.io/
44
55using BootstrapBlazor . Socket . Logging ;
6- using Microsoft . Extensions . Logging ;
76
87namespace UnitTestTcpSocket ;
98
@@ -16,10 +15,5 @@ public void Logger_Ok()
1615 SocketLogging . LogInformation ( "Information" ) ;
1716 SocketLogging . LogWarning ( "Warning" ) ;
1817 SocketLogging . LogDebug ( "Debug" ) ;
19-
20- SocketLogging . Init ( new LoggerFactory ( ) . CreateLogger ( "SocketLoggingTest" ) ) ;
21- SocketLogging . LogInformation ( "Information" ) ;
22- SocketLogging . LogWarning ( "Warning" ) ;
23- SocketLogging . LogDebug ( "Debug" ) ;
2418 }
2519}
Original file line number Diff line number Diff line change 22// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33// Website: https://www.blazor.zone or https://argozhang.github.io/
44
5+ using BootstrapBlazor . Socket . Logging ;
56using Microsoft . Extensions . Logging ;
67using System . Buffers ;
78using System . Net ;
@@ -43,6 +44,10 @@ public async Task GetOrCreate_Ok()
4344
4445 await client5 . DisposeAsync ( ) ;
4546 await factory . DisposeAsync ( ) ;
47+
48+ SocketLogging . LogWarning ( "Warning" ) ;
49+ SocketLogging . LogDebug ( "Debug" ) ;
50+ SocketLogging . LogInformation ( "Information" ) ;
4651 }
4752
4853 [ Fact ]
You can’t perform that action at this time.
0 commit comments