File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed
source/RevitDevTool/ViewModel Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 88using RevitDevTool . Theme ;
99using Serilog . Sinks . RichTextBoxForms ;
1010using Wpf . Ui . Appearance ;
11- using Serilog . Sinks . RichTextBoxForms . Themes ;
1211
1312namespace RevitDevTool . ViewModel ;
1413
@@ -60,17 +59,11 @@ private void TraceStatus(bool isStarted)
6059
6160 private void Initialized ( )
6261 {
63- var options = new RichTextBoxSinkOptions (
64- theme : ThemePresets . Colored ,
65- outputTemplate : "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:l}{NewLine}{Exception}" ,
66- formatProvider : CultureInfo . InvariantCulture ) ;
67-
68- _sink = new RichTextBoxSink ( _winFormsTextBox , options ) ;
69-
7062 var loggerConfig = new LoggerConfiguration ( )
7163 . MinimumLevel . ControlledBy ( _levelSwitch )
7264 . WriteTo . RichTextBox ( _winFormsTextBox ,
7365 out _sink ,
66+ maxLogLines : int . MaxValue ,
7467 formatProvider : CultureInfo . InvariantCulture ,
7568 theme : IsDarkTheme ? AdaptiveThemePresets . EnhancedDark : AdaptiveThemePresets . EnhancedLight ,
7669 autoScroll : true ) ;
You can’t perform that action at this time.
0 commit comments