File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
samples/LoggerSample.MainApp Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <OutputType >WinExe </OutputType >
4
+ <OutputType >Exe </OutputType >
5
5
<TargetFramework >net8.0</TargetFramework >
6
6
<DCUseGeneratedLogger >preferReference</DCUseGeneratedLogger >
7
7
</PropertyGroup >
Original file line number Diff line number Diff line change 1
- using dotnetCampus . Logging . Attributes ;
1
+ using System ;
2
+ using System . Threading . Tasks ;
3
+ using dotnetCampus . Logging . Attributes ;
2
4
using dotnetCampus . Logging . Configurations ;
3
5
using dotnetCampus . Logging . Writers ;
4
6
@@ -31,6 +33,16 @@ public static void Main(string[] args)
31
33
. AddBridge ( LoggerBridgeLinker . Default )
32
34
. Build ( )
33
35
. IntoGlobalStaticLog ( ) ;
36
+
37
+ Run ( ) ;
38
+ }
39
+
40
+ private static void Run ( )
41
+ {
42
+ Parallel . For ( 0 , 0x00010000 , i =>
43
+ {
44
+ Log . Debug ( $ "[TEST] { DateTime . Now : HH:mm:ss} ") ;
45
+ } ) ;
34
46
}
35
47
}
36
48
You can’t perform that action at this time.
0 commit comments